Link1189: 超过65536 对象的库限制

使用命令:

dumpbin /EXPORTS E:\ProjectX\ZCB10_dev\Project\Intermediate\Build\Win64\x64\UnrealEditor\Development\Game\UnrealEditor-Game.lib > d:\EXPORTS5.txt

看到有哪些对象和函数在被导出了,清理掉不需要的。
在这里插入图片描述

https://learn.microsoft.com/en-us/cpp/build/reference/dumpbin-options?view=msvc-170&viewFallbackFrom=vs-2017

二、 添加了一个脚本

按顺序排序 类的导出函数的个数

from collections import Counter
# 文件路径
file_path = 'ClassNum.txt'  # 替换为实际文件路径
output_file_path = 'output.txt'  # 输出文件路径

# 创建一个 Counter 对象来统计字符串出现的次数
counter = Counter()

# 读取文件并统计
with open(file_path, 'r', encoding='utf-8') as file:
    for line in file:
        # 找到第一个 '@' 的位置
        at_index = line.find('@')
        if at_index != -1:
            # 提取 '@' 后面的字符串
            class_name = line[at_index + 1:].split('@')[0].strip()
            counter[class_name] += 1

# 将结果按降序排序
sorted_counts = counter.most_common()

# 输出到文件
with open(output_file_path, 'w', encoding='utf-8') as output_file:
    for class_name, count in sorted_counts:
        output_file.write(f"{class_name}: {count}\n")

print(f"统计结果已输出到 {output_file_path}。")
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值