RE: Illegal Instruction (Norm Green)
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=DxeLs8XrrMYS0hWF2LZ1YuZ6ZFp8Mum3qGc4ffBnyNucmsnYMiuHnNibsfAMBSgV1lwvgwcmCeqBpn3KRiTSPriRJMi4HcxVqA4c7gcPAL96DkJp5EQA/vxHDTx5+JOyj8JcE0IxnA6rLxe8+Gj8SWDadvrkMCI1QtbkagoGrIU=; 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Heidi Zhou