Link to home
Start Free TrialLog in
Avatar of ylucki
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
ASKER CERTIFIED SOLUTION
Avatar of sunnycoder
sunnycoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of furqanchandio
furqanchandio

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.
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.
Avatar of ylucki

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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial