T O P I C R E V I E W |
gyan135 |
Posted - Dec 13 2006 : 08:27:27 AM 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..
|
1 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Dec 13 2006 : 09:07:12 AM 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. |
|
|