是个用atl编写的控件dll,在debug时可以通过,我想改成release minsize的.dll好发放出去,可是在link的时候报错
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
其中LIBCMT.lib是我要用到fopen函数需要的,我还在.cpp文件中加入了
#include <stdio.h> 这是什么原因呢?dll本来就没有main函数阿
如能解决一定给分
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
其中LIBCMT.lib是我要用到fopen函数需要的,我还在.cpp文件中加入了
#include <stdio.h> 这是什么原因呢?dll本来就没有main函数阿
如能解决一定给分
Remove _ATL_MIN_CRT from the list of preprocessor defines to allow CRT startup code to be included. See General Configuration Settings Property Page for more information.
If possible, remove calls to CRT functions that require CRT startup code. Instead, use their Win32 equivalents. For example, use lstrcmp instead of strcmp. Known functions that require CRT startup code are some of the string and floating point functions.
#include <stdio.h> 也通过并且正常执行了
现在release版的编译的时候就报错,fopen,fread不认识
我就把stdio.h加上了,就出了问题
可是这个_ATL_MIN_CRT 是干嘛用的呢?