problem with math

Matthew Zhang mathfield@hotmail.com
Thu Jun 14 12:38:00 GMT 2001


I have a source code file that include "math.h" and here's my problem:
if I compile with
gcc -g source.c, I get:
Undefined                                  first referenced
symbol                                         in file
log                                        /var/tmp/cch7Blh6.o
exp                                        /var/tmp/cch7Blh6.o
ld: fatal: Symbol referencing errors.  No output written to a.oujt

if I compile with
gcc -g -math source.c, I get
cc1: Invalid option 'ath'

this problem disappear when I compile with gcc using cygwin or dygpp which 
has gcc 2.953 with/without the -math option...but I need to do development 
in solaris, so instead of asking my administrator to upgrade the gcc, can I 
do anything about it???
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com



More information about the Gcc-help mailing list