I am curious. How can you reproduce compiler error if preprocessor
wraper is not omited. It may cause to include a copy of header twice or
more. Please write a short sample code like this.
//Test.h
//#ifndef TEST_H
//#define TEST_H
class A
{
public:
void run( void );
private:
int x;
int y;
};
//endif // TEST_H
--
Yours Truly,
Bryan Parkoff
wraper is not omited. It may cause to include a copy of header twice or
more. Please write a short sample code like this.
//Test.h
//#ifndef TEST_H
//#define TEST_H
class A
{
public:
void run( void );
private:
int x;
int y;
};
//endif // TEST_H
--
Yours Truly,
Bryan Parkoff
Comment