holdom

16 Reputation

4 Badges

15 years, 228 days

MaplePrimes Activity


These are Posts that have been published by holdom

Does anyone else have trouble with Compiler:-Compile on a Mac?

I have gcc 4.0 installed on Mac OS X 10.4.2.

For example for,

p := proc( x :: float ) :: float; 2.3 * x end:
cp := Compiler:-Compile( p ):
cp( 1.1 );

I get the message:

Error, (in LinkDSO) linker exited with nonzero status 256: /usr/bin/ld: can't locate file for: -lcc_dynamic

But on my home Mac, which I think is configured in exactly the same way, the same commands work!

Bob.

Note added:

After a lucky google search I found a reference to the problem. A symbolic link is removed by the installation of gcc 4.0. Running Disk Utility to fix permissions repairs the link, and now Compiler:-Compile works!
Page 1 of 1