This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
problem with math
- To: gcc-help at gcc dot gnu dot org
- Subject: problem with math
- From: "Matthew Zhang" <mathfield at hotmail dot com>
- Date: Thu, 14 Jun 2001 12:38:22 -0700
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