Re: Unrecognized ld flags
Re: Unrecognized ld flags
- Subject: Re: Unrecognized ld flags
- From: Peter O'Gorman <email@hidden>
- Date: Thu, 30 Aug 2007 10:08:06 -0500
On Thu, 2007-08-30 at 16:05 +0200, Chiara Sandionigi wrote:
> First of all, thanks for the information.
> Unfortunately I have not solved the problem yet.
> I must rewrite the following code line to work on Mac
> mkshared_str = '${CXX} -shared ${CXXFLAGS} -o ${TGT} -Wl,-E
> -Wl,--whole-archive ${SRC} -Wl,--no-whole-archive -lstdc++ -lc'
> I have rewritten it as follows
> mkshared_str = '${CXX} -dynamic ${CXXFLAGS} -o ${TGT} -Wl,-all_load'
> but now I have the following error
> /usr/bin/ld: Undefined symbols:
> _main
> collect2: ld returned 1 exit status
Use -dynamiclib rather than -dynamic (and perhaps add the sources).
Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden