Dan*_*ode 1 c++ linker unresolved-external icu
我使用的IDE是Visual Studio 2010 Professional,我使用的库是用于MSVC10的Win32的ICU 4C 4.8.1.
我根据Debug和Release的手册重建了所有源代码,并且所有测试都成功通过.
然后我按照Boost的方式做.
我包含了包含在C/C++中>附加包含在Proprieties中的目录,这似乎很好.
我还包括\ lib中的链接>附加库目录.
但是,我一直在努力error LNK2019: unresolved external symbol.
源代码:
#include <unicode/uchar.h>
int main () {
UBool b = u_isprint('c');
return 0;
}
Run Code Online (Sandbox Code Playgroud)
错误
1>ClCompile:
1> Main.cpp
1>Main.obj : error LNK2019: unresolved external symbol _u_isprint_48 referenced in function _main
1>C:\Users\ ... \Documents\Visual Studio\Finger-Printing-Non-ASCII\Debug\Finger-Printing-Non-ASCII.exe : fatal error LNK1120: 1 unresolved externals
1>
1>Build FAILED.
Run Code Online (Sandbox Code Playgroud)
除了设置其他包含目录和库目录之外,您还必须实际链接到库.转到项目属性 - >链接器 - >输入并将名称写入附加依赖项文本框中的.lib .HTH
| 归档时间: |
|
| 查看次数: |
1632 次 |
| 最近记录: |