Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wierd 'error C2011' with struct
Message
From
12/03/2002 15:30:48
 
 
To
All
General information
Forum:
Visual C++
Category:
Coding, syntax & commands
Title:
Wierd 'error C2011' with struct
Miscellaneous
Thread ID:
00631734
Message ID:
00631734
Views:
57
Here's part of my code:
struct _TEMPNAME
{
   FILE *fp;
   char modechar;
   char *name; 
};
typedef struct _TEMPNAME FILE_INFO;
Or I also tried it this this way:
typedef struct { FILE *fp; char modechar; char *name; } FILE_INFO;
Which should give the same results but according to the VC
compiler, I'm always redefining something (which I am not!)

For example, in the first case, I'm supposedly redefining
_TEMPNAME, but if I change it to something unorthodox like
_HELLOMAMA01234, the compiler is still giving an error
saying that I am now redefining _HELLOMAMA01234. I can
try multiple names without results.

What should I change or try now?

Thanks, Stephane.
Next
Reply
Map
View

Click here to load this message in the networking platform