From: ptrouton@bfsec.bt.co.uk (Paul Trouton) Subject: Compiling in Ansi C Date: Fri, 17 Sep 1993 09:00:44 GMT
I have a problem (dont we all)
I am designing software on a Sun Sparc 2, in c and I am using cc to compile it.
It comilies fine in work, but when I take the source home and try to compile it
in Linux with gcc I get the following problems.
Im using gcc -ansi - traditional
In the following code, claimline is an array, s_time is type Double
if (claimline[i].tra_det.s_time != NULL)
On the sun I can compile this code and the process of checking a double for NULL works
fine. But in Linux using gcc I get an incompatable data type error.
I know that I could just write
if (claimline[i].tra_det.s_time != 0.0)
and this would work, but if possible I just want to tell gcc to ignore and allow these such statements.
Please can someone tell me how to get around this problem with gcc.
========
Thanks for the help. Paz