Problem declaring struct
Problem declaring struct
- Subject: Problem declaring struct
- From: Livio Isaia <email@hidden>
- Date: Sun, 13 May 2007 01:27:17 +0200
I have to declare a struct type in the header of a "cpp" file, so I type
for example:
struct myData {
int a;
in b;
long c;
};
but the compiler tells me;
"redefinition of 'struct myData'
previous definition of 'struct myData'"
(which correspond to the same file line "struct myData {").
I also tried with
typedef struct _myData {
int a;
in b;
long c;
}myData;
but it's even worse...
What can be the error?
It's the first time I encounter such a problem and looks very strange...
Thank you all in advance,
best regards, livio,
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden