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