Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Any MacOS X programmers?


On Jul 8, 2005, at 12:49 PM, Treggiari, Leo wrote:

Do we have any MacOS X programmers reading the list If so, can you tell me what the gcc & g++ options are for creating a dynamic library? Our current tool-chain places “-Wl, -dylib” on the command line, but that gets an error. It looks like “-dynamiclib” might be the correct option. Does anyone know if it is, and whether there are any other options that need to be set?
The command line used for GNU in CDT on Mac OS X is


gcc -nostartfiles -nodefaultlibs -Wl,-dylib -o libxxx.dylib $(OBJS) $ (USER_OBJS) $(LIBS)

Cheers,
Craig



Back to the top