RE: Illegal Instruction
RE: Illegal Instruction
- Subject: RE: Illegal Instruction
- From: Norm Green <email@hidden>
- Date: Mon, 9 Jul 2007 11:58:26 -0700
Title: RE: Illegal Instruction
Heidi,
Not sure if this is related, but you should link using g++ rather than ld. You also should link with -lc, but you won't need to link with -lstdc++.6 -lgcc_s.1 if you use g++ for linking (it will automatically specify those).
Norm Green
GemStone Systems Inc.
-----Original Message-----
From: Heidi Zhou [mailto:email@hidden]
Sent: Monday, July 09, 2007 11:49 AM
To: email@hidden
Subject: Illegal Instruction
Hello!
I got Illegal instruction when I tried to run the
small test program I made. The way of I compile and
link is
g++ -g -Wall -Iinclude -I./../include -DDarwin -DDEBUG
-c test/test.cpp -o test/bin_osx/test.o
ld test/bin_osx/test.o -o test/bin_osx/mytest
-lstdc++.6 -lgcc_s.1 -lpthread
Here is the information of my system
$ uname -p
i386
$ uname -v
Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT
2007; root:xnu-792.22.5~1/RELEASE_I386
What I did is wrong that cause the illegal
instruction?
Thank you in advance for your help.
Heidi
____________________________________________________________________________________
Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
_______________________________________________
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
_______________________________________________
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