Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 error C2513 ,error C2371
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gyan135
Starting Member

India
1 Posts

Posted - Dec 13 2006 :  08:27:27 AM  Show Profile  Reply with Quote
hi,
I am getting compile time error in this program i try a LOT but not get perfact result .Please any one give me the direction for resolving these error.

unsigned long int x;
#define p s((x))


typedef struct m {
int m_i;

}p;m;


typedef struct d {
int m_i;

}p;d;


int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}


:error C2513: 'm' : no variable declared before '='
: error C2371: 's' : redefinition; different basic types
: error C2513: 'd' : no variable declared before '='

thanks for giving consideration..

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Dec 13 2006 :  09:07:12 AM  Show Profile  Reply with Quote
I am not sure what you are trying to do here. You have used "p" twice, which is not going to help. I would also remove "m;" and "d;" and also the #define line, since it is not doing anything helpful in this example.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000