First time error :S help plz

error C2378: 'LPCELLFILE' : redefinition; symbol cannot be overloaded with a typedef

It worked with my previous source and im pretty sure nothing was changed. It seems to cause this error with everything that calls for it.

error C2065: 'LPCELLFILE' : undeclared identifier

Not sure why its doing this or how to fix


looking up typedef for more
What was ur IDE before and now ?
Did u simply try changing the name by 1 letter to see if things improve ?
New compilers don't allow u to define a var name then redefine that same name using typedef.
If this doesnt help can u show some relevant source code?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct CellFile
{
	DWORD dwVersion;	
	struct {
		WORD dwFlags;
		BYTE mylastcol;
		BYTE mytabno:1;
	};					
	DWORD eFormat;
	DWORD termination;
	DWORD numdirs;
	DWORD numcells;
	GfxCell *cells[1];
};


That is the what i want to use with type def

typedef CellFile *LPCELLFILE;

thats how i did it... Not sure whats wrong with it worked previously but not sure now :S
You did not show the code where the errors occur.
Just an idea..
1
2
3
4
5
6
7
8
9
10
11
12
13
14
typedef struct CellFile
{
	DWORD dwVersion;	
	struct {
		WORD dwFlags;
		BYTE mylastcol;
		BYTE mytabno:1;
	};					
	DWORD eFormat;
	DWORD termination;
	DWORD numdirs;
	DWORD numcells;
	GfxCell *cells[1];
} *LPCELLFILE; //usually with a LPCELL struct there too so u can have a pointer to the struct if need be... 
Last edited on
will look into it...ty
Topic archived. No new replies allowed.