Re: Illegal Instruction
Re: Illegal Instruction
- Subject: Re: Illegal Instruction
- From: "Justin C. Walker" <email@hidden>
- Date: Mon, 9 Jul 2007 12:09:31 -0700
On Jul 9, 2007, at 11:58 , Norm Green wrote:
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).
Your comment is certainly correct. Even if it's not the complete
solution, Heidi won't get a running c++ program without the proper
link command, and it's almost always best to let the compiler sort
this out and invoke the linker correctly.
FWIW, I don't think "-lc" is needed in general. The 'C' library is
automatically included if you let the compiler do the linking...
Justin
--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
I'm beginning to like the cut of his jibberish.
-----------
_______________________________________________
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