compiling gsl

I have been having no luck linking a simple program with gsl for a universal binary. Is there a place where I can get a precompiled universal library for gsl? Or does someone have better instructions than those that come with gsl for making libraries for multiple platforms?

Jon

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Inelegant Hack

If you have access to PPC and Intel Macs which both have GSL libraries installed, you can compile the code on both, then use lipo to join the two and create the universal binary. I installed GSL on both computers using DarwinPorts, changed a couple of items in the Makefile to reference the correct library locations, and compiled with no issue. There are certainly better ways, but this works. After developing and testing my code on the Intel, compiling and running it on the PPC reminded me of the fact that my little endian data file needed a byte swap before being used by the PPC code.
Cheers,
-asn