Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wierd 'error C2011' with struct
Message
De
12/03/2002 15:30:48
 
 
À
Tous
Information générale
Forum:
Visual C++
Catégorie:
Codage, syntaxe et commandes
Titre:
Wierd 'error C2011' with struct
Divers
Thread ID:
00631734
Message ID:
00631734
Vues:
56
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform