SOrry Frank,
I have added the -lm for the math library to the link statement, no changes result in my desired output. I tried that yesterday.
Is the Math Library part of the gcclib package that is compiler dependant?
Adam
-----Original Message----- From: Frank Heckenbach [mailto:frank@g-n-u.de] Sent: Friday, October 19, 2001 8:23 AM To: gpc@gnu.de Subject: Re: installation problems
Oldham, Adam wrote:
Sorry Frank, here is the complete report: I link a rather large application (500+ Pascal files with 20 C files) into one executable. I precompile everything as objects and then perform the following commands to link: find /src -name '*.o' -exec echo -n {} " " ; > lnk.tmp echo -n /src/os/os.a " " >> lnk.tmp\ touch rds.map gcc -static `cat lnk.tmp` -lgpc -lgcc -lpthread -lpanel -lncurses -Xlinker -Map rds.map
So, there's no -lm. Just add it. (gpc does this automatically, together with -lgpc, but it you link with gcc, you have to provide both explicitly.) You might have to find the correct library order (porbably -lgpc -lm I think).
Someone needs to write these companies like Mandrake, Redhat, Suse and get them to stop using these bad compilers. People have been complaining
about
this 'v2.96' compiler for 2 years now and they are still distributing
them.
It's a real pain and trying procedure to get that compiler off and still have their stock programs run correctly (because of library dependencies).
And I've heard SuSE has a broken GPC installation in their recent distribution again (they had one some years ago, and it took some letters from Peter to make them fix it).
Any volunteers? :-/
Frank
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