2 sad links errors

2 sad links errors

Post by Stephane P » Wed, 01 Oct 2003 00:06:13


Using CW8.3 MacOS X, I try to link with libgd (GD Image Library from
http://www.yqcomputer.com/ ) and I always get these strange link errors:

Link Error : undefined: 'restFP' (code)
Referenced from 'gdImageCreate' in libgd.a

Link Error : undefined: 'saveFP' (code)
Referenced from 'gdImageCreate' in libgd.a

The libgd developer says that it can't comes from his lib since 'restFR'
and 'saveFP' mean nothing in the libgd...

After several days trying to understand what happens, I would be
liberated if someone could give me some ways to avoid these blocking
errors.

Thanks in advance.

Regards

Sthane
 
 
 

2 sad links errors

Post by Sean McBri » Wed, 01 Oct 2003 11:13:09

In article <20030929171138817+ XXXX@XXXXX.COM >,



The answer is out there already :) Search the groups with google and
you'll find Ron's previous answer:

"The "saveFP"/"restFP" references (probably come when importing
gcc-generated .a files) - to resolve these add file libcc_dynamic.a
somewhere before MSL_Runtime_Mach-O.a it is in the /usr/lib direcotry.
It appears that gcc calls saveFP/restFP when code is compiled -O, but
might not call these functions in an unoptimized variant."