[Cppunit-devel] C1083-Cannot open include file <cppunit/extensions/HelperMacros.h>
Brought to you by:
blep
From: Srivalli A. <sar...@ya...> - 2005-11-30 00:45:20
|
Hello! I am a newbie in CPPUnit. I tried to compile a testClass file called RPTest.h in Visual Studio .NET 2003 whose first few lines look like: #ifndef RPTest_H #define RPTest_H #include <cppunit/extensions/HelperMacros.h> class RPTest : public CPPUNIT_NS::TestFixture { .... } I get following error when I compile RPTest.cpp: c:\xxx\RPTest.h(5): fatal error C1083: Cannot open include file: 'cppunit/extensions/HelperMacros.h': No such file or directory Compiler complains about not finding HelperMacros.h although the file is located on the drive. File is not read-only. The associated cpp file RPTest.cpp looks like: #include "StdAfx.h" #include "RPTest.h" // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION( RPTest ); void RPTest::setUp(){ } void RPTest::tearDown(){ } I also added the path to CPPUnit include directory. I did this by right-clicking solution project name and selecting properties --> C/C++ --> General --> Additional Include Directories. Am I missing something? Thanks Srivalli. --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. |