使用dumpbin查看动态链接库有 函数名=@ILT+数字(函数名)

问题

#include "testdll.h"
int add(int a, int b)
{
int c = a + b;
return c;
}
.hpp
#pragma once
extern "C" __declspec(dllexport) int add(int a, int b);
然后编译成动态库,用dumpbin查看动态库,发现是这样的
ordinal hint RVA name
1 0 00001000 add = add
为什么不像别人的动态库一样,有@ILT这样的东西?
比如:1 0 00001000 add = @ILT+670(add)

原因

我猜你用 Debug 模式生成的,因为那默认开启了增量链接,ILT是 Incremental Link Table 的缩写,你可以关掉或者换 Release 模式嗷。

例子

release

debug

猜你喜欢

转载自blog.csdn.net/qq_41607336/article/details/121606986
今日推荐