Original Post
Hi, I meet a problem on header file linking.
I have a stdhdr.h header file and a class Test.cpp & Test.h
//Test.h
#include "stdhdr.h"
class CTest
{
void print(Struct1 *st1);
};
//stdhdr.h
class CTest;
typedef struct Struct1
{
CTest *test1;
}Struct1;
It contains error when i compile, how can i fix it? Thx
error C2236: unexpected ''class'' ''CTest''