VS2010

1,
vc++目录——>包含目录: Visual Studio will search for the include files referred to in your source code files. //include "*.h"
c/c++——>常规——>附加包含目录: added the include files in the list of directories searched.
库目录和附加库目录类似。
link->输入->附加依赖项 :你的LIB文件被真正包含进来了。 把它所在的目录添加到库目录或附加库目录里面 :仅仅包含目录只是告诉IDE,搜索没有指定路径的库文件时,也搜索这里。

 

2,
1>libcpmtd.lib(stdthrow.obj) : error LNK2019: 无法解析的外部符号 __CrtDbgReportW,该符号在函数 "void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (?_Debug_message@std@@YAXPB_W0I@Z) 中被引用
弄个DLL,设为debug /MTd总是报这错,设为Relese就OK. 改了每种/M* 还是五花八门的报错。

在连接选择中LIBCMTD.lib和LIBCMT.lib两个文件中只能选一个. 
我是debug模式, link->输入->忽略特定的默认库 里面填上LIBCMT.lib就OK了。

 

posted @ 2013-07-12 10:26  细雨细语  阅读(328)  评论(0编辑  收藏  举报