site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Jul 9, 2007, at 11:58 , Norm Green wrote: 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Justin C. Walker