ylucki
asked on
Compilation Errors
Hi,
We are porting an Application from Solaris to Linux.
When we compile the application, we get the compilation errors like:
/test.h warning: no semicolon at the end of struct or union
Can someone please guide us how to get around this problem ? Is re-installing the kernel the only option here ?? what exactly could be the problem ??
Thanks,
Lucky
We are porting an Application from Solaris to Linux.
When we compile the application, we get the compilation errors like:
/test.h warning: no semicolon at the end of struct or union
Can someone please guide us how to get around this problem ? Is re-installing the kernel the only option here ?? what exactly could be the problem ??
Thanks,
Lucky
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
do the programs compile ok on Solaris ?
Every struct definition must end with a semicolon, at least in every compiler I know.
If, for a strange reason your source code doesn't have it, you have to insert them to alow to compile with any C compiler.
If, for a strange reason your source code doesn't have it, you have to insert them to alow to compile with any C compiler.
Switch on the flag for listing the include files and see what it is picking up and which header is generating the error. It is probably some #define that exists on one platform and not the other.
ASKER
Hi,
Sorry for the off-the sequence comments. But the source code compiles well on Solaris and executes fine.
The problems started to appear once we re-installed the Linux, for other reasons. So definitely this is not the problem with semicolon and stuff !!!
Regards, Lucky.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.