From: Dhananjay M. <ma...@se...> - 2005-02-11 21:11:13
|
All, I am writing a simple test using libcunit on Windows XP (SP2) with Visual studio .Net 2003 version. When I compile the test with "cl .... /MD" option and link with "link .... /NODEFAULTLIB:LIBC", I get linker errors (see below). This is due to isspace() in _CU_trim_left routine in Util.c. Now for me to test my code using cunit I *have* to use "/MD" and "NODEFAULTLIB:LIBC" options as all my DLLs are linked that way. Is there any workaround? I really would like to use CUnit for unit testing. But with this I am stuck. Thanks in advance, -Jay PS: Please cc me on replies as I am not subscribed. Compile output: cl /c commontest.c /I c:/work/Base/tests/ext/CUnit/ Headers /INCREMENTAL:NO /DEBUG /MD Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86 Copyright (C) Microsoft Corporation 1984-2002. All rights reserved. commontest.c link commontest.obj /OUT:c:/work/Base/tests/bin/commontest.exe /NOLOGO /DEBUG /LIBPATH:c:/work/Base/tests/ext/CUnit/lib /DEFAULTLIB:libcunit /NODEFAULTLIB:LIBC libcunit.lib(Util.obj) : error LNK2001: unresolved external symbol __pctype libcunit.lib(Util.obj) : error LNK2001: unresolved external symbol ___mb_cur_max c:/work/Base/tests/bin/commontest.exe : fatal error LNK1120: 2 unresolved externals |