RE: Illegal Instruction (Norm Green)
RE: Illegal Instruction (Norm Green)
- Subject: RE: Illegal Instruction (Norm Green)
- From: Heidi Zhou <email@hidden>
- Date: Mon, 9 Jul 2007 12:37:35 -0700 (PDT)
Norm,
Thank you for the help.
Your suggestion works! Now, I extend my test program
to generate a dynamic library. However, when I use g++
to link, I got the following error
$ g++ -g -Wall -dylib bin_osx/osServDarwin.o
bin_osx/utilsDarwin.o bin_osx/nlstrDarwin.o
bin_osx/nlthreadDarwin.o bin_osx/nlthreadpool.o -o
bin_osx/libcebrain.dylib -lpthread -liconv
/usr/bin/ld: Undefined symbols:
_main
collect2: ld returned 1 exit status
Could you tell me if where I did wrong again? Under
this case, do I have to use ld instead? (Hope not,
otherwise, it is hassle to write my general makefile
to specify what linker used for dynamic library and
for executable differently.)
Thank you.
Heidi
Heidi
~~ Life is a song of my heart. ~~
http://photos.yahoo.com/heidi_zhou
____________________________________________________________________________________
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden