On Thursday 08 November 2007 19:51:59 Erik de Castro Lopo wrote: > Felipe Sateler wrote: > > All other workarounds I'm aware of require gcc 4 or gcc 3+patches. > > The method I use for libsndfile works for Linux, Mac OSX and Win32, > right back to gcc-2.95 *without* leaving any ugly __declspec or > __attribute__(visibility("hidden")) crap in the code. Ah! I had forgotten of version scripts. I might have discarded them because for C++ libraries they tend to be not-so-useful (listing mangled names is no fun). That seems to work like a charm for C, though. -- Felipe Sateler