onedayme 2006-12-28 14:56
c++test使用问题,高手请进!使用这个的老兄们也进来讨论吧
nafxcw.lib(thrdcore.obj) : error LNK2019: unresolved external symbol __endthreadex referenced in function "void __stdcall AfxEndThread(unsigned int,int)" (?AfxEndThread@@YGXIH@Z)
nafxcw.lib(thrdcore.obj) : error LNK2019: unresolved external symbol __beginthreadex referenced in function "public: int __thiscall CWinThread::CreateThread(unsigned long,unsigned int,struct _SECURITY_ATTRIBUTES *)" (?CreateThread@CWinThread@@QAEHKIPAU_SECURITY_ATTRIBUTES@@@Z)
C:\Documents and Settings\miao.xiaojun\C++TestFiles\Projects\booktest\Product\Book.cpp_0\ctbin\BookTest.exe : fatal error LNK1120: 2 unresolved externals
Process exited with code 1120
Error: Linking harness failed for:
D:\Words\Words\Book.cpp .
------------------------
The following problem(s) occured during building test harness:
Error: Linking harness failed for:
D:\Words\Words\Book.cpp .
这个错误是怎么造成的哦,如何解决啊
onedayme 2006-12-28 19:31
哪里找在线技术支持哦?
snappyboy 2007-1-4 22:38
编译时选择多线程的运行时库。
Project Setting->C/C++,Catagory,Code Generation,Use run-time library下选择Mutithreaded
onedayme 2007-1-5 15:04
Project Setting->C/C++,Catagory,Code Generation,Use run-time library下选择Mutithreaded
这个好像在c++test里面没有这个设置项啊
VisualUnit 2007-1-5 17:16
[quote]原帖由 [i]onedayme[/i] 于 2007-1-5 15:04 发表
Project Setting->C/C++,Catagory,Code Generation,Use run-time library下选择Mutithreaded
这个好像在c++test里面没有这个设置项啊 [/quote]
是指在VC里吧。
VisualUnit 2007-1-6 10:49
[quote]原帖由 [i]onedayme[/i] 于 2007-1-6 10:08 发表
在vc里设置,然后在c++test运行能起作用? [/quote]
起不起作用我不知道,你要自己试一下才行。
Project Setting->C/C++,Catagory,Code Generation,Use run-time library下选择Mutithreaded
这应该是VC的选项。
lantianwei 2007-4-10 14:42
这真是一个奇怪的问题,我昨天也碰到了一个相似的问题,是报runner错,但我觉得我哪里有没做错啊,晕!