error LNK2001: unresolved external symbol _main。
我写了原文件,头文件(用extern "C" _declspec(dllexport) 函数名这种方式,而不是def)。
不知道哪错了。
我写了原文件,头文件(用extern "C" _declspec(dllexport) 函数名这种方式,而不是def)。
不知道哪错了。
调试欢乐多
The code asks for the wrong thing (you are using mixed versions of the libraries, some from one version of the product, others from another version).
This error message is followed by fatal error LNK1120.
隐式加载,需要把DLL对应的.LIB引入工程
应该用win32 application类型
Linking...
Creating library Debug/testdll.lib and object Debug/testdll.exp
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/testdll.exe : fatal error LNK1120: 1 unresolved externals
顺便问问有关动态库的问题
通过vc的dependency看dll时,有些function项有些看上去乱码(@@)的东西是怎么回事。没有头文件,能通过这个工具察看函数的具体参数吗?
动态库可以相互调用吗?
动态库里动态分配内存好吗?