Re: Unrecognized ld flags
Re: Unrecognized ld flags
- Subject: Re: Unrecognized ld flags
- From: Chiara Sandionigi <email@hidden>
- Date: Thu, 30 Aug 2007 17:43:37 +0200
On 30/ago/07, at 17:08, Peter O'Gorman wrote:
On Thu, 2007-08-30 at 16:05 +0200, Chiara Sandionigi wrote:
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).
Now I have
mkshared_str = '${CXX} -dynamiclib ${CXXFLAGS} -o ${TGT} -Wl, -
all_load ${SRC}'
but I get the following error
/usr/bin/libtool: can't open file: (No such file or directory)
_______________________________________________
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