Sorry for posting this again. I'm very new to cppunit, I'm having a problem building it on VS 2005, I've checked the forums but some of the posts are too old and some are not very helpful.
in the cppunit-1.12.0/lib files I find:
testrunnerud.dll
testrunnerud.lib
but no files in: cppunit-1.12.0/examples/msvc6/HostApp/DebugNoTypeInfoName
Again, the error is:
1>.\DebugNoTypeInfoName\testrunnerd.dll
1>The system cannot find the file specified.
One post suggested renaming files which I find puzzling. If I copy the file testrunnerud.dll file and rename it I'm now required for the file:
1>LINK : fatal error LNK1181: cannot open input file '..\..\..\lib\testrunnerd.lib'
Since I only have lib\testrunnerud.lib, renaming it gives an (expected error)
Debugger:: An unhandled non-continuable STATUS_DLL_NOT_FOUND exception was thrown during process load
The thread 'Win32 Thread' (0x2a00) has exited with code -1073741515 (0xc0000135).
The program '[10748] HostApp.exe: Native' has exited with code -1073741515 (0xc0000135).
I have 2 questions,
1) Obviously renaming does not work, but I only have
testrunnerud.dll
testrunnerud.lib
and not
testrunnerd.dll
testrunnerd.lib
2) I'm working on cppunit-1.12.0/examples, and not in the src folder. Is that ok?
Thanks in advance.
Alejandro
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Sorry for posting this again. I'm very new to cppunit, I'm having a problem building it on VS 2005, I've checked the forums but some of the posts are too old and some are not very helpful.
1) I've downloaded cppunit 1.12.0
2) I've read INSTALL-WIN32.txt
3) I've read The BuildCppUnit1 page at http://cppunit.sourceforge.net/cppunit-wiki/BuildingCppUnit1#head-1c1077605c79a85c5ca327743bf01eca9c13dbd1
and made the changes.
4) I'm getting an error when building HostApp project:
1>------ Rebuild All started: Project: HostApp, Configuration: Debug No Type Info Name Win32 ------
1>Deleting intermediate and output files for project 'HostApp', configuration 'Debug No Type Info Name|Win32'
1>.\DebugNoTypeInfoName\testrunnerd.dll
1> 1 file(s) copied.
1>Compiling...
1>StdAfx.cpp
1> WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)
1>Compiling...
1>HostApp.cpp
1>HostAppDoc.cpp
1>HostAppView.cpp
1>MainFrm.cpp
1>Generating Code...
1>Compiling...
1>ExampleTestCase.cpp
1>Compiling resources...
1>Linking...
1>LINK : fatal error LNK1181: cannot open input file '..\..\..\lib\testrunnerd.lib'
1>Build log was saved at "file://c:\cppunit-1.12.0\examples\msvc6\HostApp\DebugNoTypeInfoName\BuildLog.htm"
1>HostApp - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Thanks in advance, sorry if I'm missing something obvious.
Alejandro
make sure you have testrunnerd.lib in your ...\cppunit-1.12.0\lib folder.
If not, build "TestRunner" project first.
Hope that helps.
Hi, thanks for your answer.
After building the hole solution I get 4 errors
9>HostApp - 1 error(s), 0 warning(s)
11>DllPlugInTesterTest - 1 error(s), 0 warning(s)
12>simple_plugin - 1 error(s), 0 warning(s)
15>CppUnitTestApp - 1 error(s), 0 warning(s)
in the cppunit-1.12.0/lib files I find:
testrunnerud.dll
testrunnerud.lib
but no files in: cppunit-1.12.0/examples/msvc6/HostApp/DebugNoTypeInfoName
Again, the error is:
1>.\DebugNoTypeInfoName\testrunnerd.dll
1>The system cannot find the file specified.
One post suggested renaming files which I find puzzling. If I copy the file testrunnerud.dll file and rename it I'm now required for the file:
1>LINK : fatal error LNK1181: cannot open input file '..\..\..\lib\testrunnerd.lib'
Since I only have lib\testrunnerud.lib, renaming it gives an (expected error)
Debugger:: An unhandled non-continuable STATUS_DLL_NOT_FOUND exception was thrown during process load
The thread 'Win32 Thread' (0x2a00) has exited with code -1073741515 (0xc0000135).
The program '[10748] HostApp.exe: Native' has exited with code -1073741515 (0xc0000135).
I have 2 questions,
1) Obviously renaming does not work, but I only have
testrunnerud.dll
testrunnerud.lib
and not
testrunnerd.dll
testrunnerd.lib
2) I'm working on cppunit-1.12.0/examples, and not in the src folder. Is that ok?
Thanks in advance.
Alejandro
Ok, I found the answer. Thanks jwin for taking the time anyway.
I just needed to change the configuration at VS to "Debug Unicode"
From INSTALL-WIN32.txt
Configuration:
--------------
CppUnit and TestRunner comes with 3 configurations.
* Release (): Multihtreaded DLL, release mode
* Debug (d): Debug Multithreaded DLL, debug mode
* Unicode Release (u): Unicode Multihtreaded DLL, release mode
* Unicode Debug (ud): Unicode Debug Multithreaded DLL, debug mode
Thanks again
Alejandro