How do I build a text-only CppUnit console application in a different compiler?
Im using an old version of MSVC++ 5.0, so I created a static library project and added all .cpp and .h files from the $CppUnit\src\cppunit directory and added $CppUnit\include to the include files search path.
The compilation always fails in a MSVC include file named "xmemory". (I have no idea on how it got included in the project). The exact error messages follow below.
Thanks in advance for any help,
Alex
--------------------Configuration: CppUnit - Win32 Debug--------------------
Compiling...
CompilerOutputter.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'Test'
PlugInManager.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\deque(229) : error C2065: 'PlugInInfo' : undeclared identifier
C:\Arquivos de programas\DevStudio\VC\INCLUDE\deque(229) : error C2440: 'default argument' : cannot convert from 'int' to 'struct CppUnit::PlugInManager::PlugInInfo'
No constructor could take the source type, or constructor overload resolution was ambiguous
Protector.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestListener'
RepeatedTest.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestListener'
TestCase.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestListener'
TestComposite.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestListener'
TestResultCollector.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'Test'
TestRunner.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestListener'
TestSuite.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestListener'
TextOutputter.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'Test'
TextTestRunner.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestFailure'
Generating Code...
Error executing cl.exe.
CppUnit.exe - 12 error(s), 0 warning(s)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How do I build a text-only CppUnit console application in a different compiler?
Im using an old version of MSVC++ 5.0, so I created a static library project and added all .cpp and .h files from the $CppUnit\src\cppunit directory and added $CppUnit\include to the include files search path.
The compilation always fails in a MSVC include file named "xmemory". (I have no idea on how it got included in the project). The exact error messages follow below.
Thanks in advance for any help,
Alex
--------------------Configuration: CppUnit - Win32 Debug--------------------
Compiling...
CompilerOutputter.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'Test'
PlugInManager.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\deque(229) : error C2065: 'PlugInInfo' : undeclared identifier
C:\Arquivos de programas\DevStudio\VC\INCLUDE\deque(229) : error C2440: 'default argument' : cannot convert from 'int' to 'struct CppUnit::PlugInManager::PlugInInfo'
No constructor could take the source type, or constructor overload resolution was ambiguous
Protector.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestListener'
RepeatedTest.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestListener'
TestCase.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestListener'
TestComposite.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestListener'
TestResultCollector.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'Test'
TestRunner.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestListener'
TestSuite.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestListener'
TextOutputter.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'Test'
TextTestRunner.cpp
C:\Arquivos de programas\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type 'TestFailure'
Generating Code...
Error executing cl.exe.
CppUnit.exe - 12 error(s), 0 warning(s)