1 在编译的参数中加入 /MTd 2 The most common cause of this error is accidentally linking with both the single-threaded and multithreaded libraries. Ensure that the application project file includes only the appropriate libraries and that any third-party libraries have appropriately created single-threaded or multithreaded versions.
2
The most common cause of this error is accidentally linking with both the single-threaded and multithreaded libraries. Ensure that the application project file includes only the appropriate libraries and that any third-party libraries have appropriately created single-threaded or multithreaded versions.
MSC6.0好象没有这个参数啊设定方法:
Projcet setting-->C/C++-->Use run-time library 可以选择使用那个库
#ifndef _文件名_H
#include _文件名_H or #define ...#end if
好像是这么得吧,是那个我也网机了
可以封装这两个lib,把同名的函数封装在不同的lib中
例如WODBCMCL.LIB 和lnetlib.lib中都有abc(),
自己做两个lib
myWODBCMCL.LIB 和mylnetlib.lib,分别把abc()修改为abc1()和abc2(),
其中
myWODBCMCL.LIB使用WODBCMCL.LIB的函数
abc1()
{
return abc();
}
mylnetlib.lib中abc2()使用lnetlib.lib的函数
abc2()
{
return abc();
}
这样就可以避免在编译时提示重名的问题