As I stated in my last email, I used the exact same linking command lines, on with -lm, one without. So that is: gcc -static `cat lnk.tmp` -lgpc -lgcc -lpthread -lpanel -lncurses -Xlinker -Map rds.map
-and- gcc -static `cat lnk.tmp` -lm -lgpc -lgcc -lpthread -lpanel -lncurses -Xlinker -Map rds.map
I also used -v in both command lines without in further useful information being output.
Upon further research, libm comes with glibc, or at least the glibc package. I'm going to dive deeper into this and will post my results.
Adam
-----Original Message----- From: Frank Heckenbach [mailto:frank@g-n-u.de] Sent: Friday, October 19, 2001 10:53 AM To: gpc@gnu.de Subject: Re: installation problems
Oldham, Adam wrote:
I have added the -lm for the math library to the link statement, no
changes
result in my desired output. I tried that yesterday.
Then please post the exact command line that you used, including -lm.
Is the Math Library part of the gcclib package that is compiler dependant?
As I said, no.
Frank
Oldham, Adam wrote:
As I stated in my last email, I used the exact same linking command lines, on with -lm, one without. So that is: gcc -static `cat lnk.tmp` -lgpc -lgcc -lpthread -lpanel -lncurses -Xlinker -Map rds.map
-and- gcc -static `cat lnk.tmp` -lm -lgpc -lgcc -lpthread -lpanel -lncurses -Xlinker -Map rds.map
I also used -v in both command lines without in further useful information being output.
If you use `-v' on the GPC command line, you might find that GPC puts -lm *after* -lgpc, so doing the same on your command line might help ...
Frank