Re: [Cppunit-devel] C1083-Cannot open include file <cppunit/extensions/HelperMacros.h>
Brought to you by:
blep
|
From: Baptiste L. <bl...@us...> - 2005-11-30 17:18:34
|
You need to add the path to cppunit *include* directory. E.g. for me it =
is:
E:\prg\vc\Lib\cppunit\include
Baptiste.
----- Original Message -----=20
From: Srivalli Arkalgud=20
To: cpp...@li...=20
Sent: Wednesday, November 30, 2005 1:45 AM
Subject: [Cppunit-devel] C1083-Cannot open include file =
<cppunit/extensions/HelperMacros.h>
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.=20
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.
---
Baptiste Lepilleur <bl...@us...>
CppUnit maintainer
OpenTest and CppUnit 2 developer. |