On Dec 26, 2003, at 3:19 AM, Ben Hines wrote:


But usally you'd want to be linking with "g++" instead of "gcc" to fix the c++ link problem.


Actually, I only need SetLDFLAGS: -lstdc++.



Again the proper fix is to use "g++" as your linker. Adding the -lstdc++ is the incorrect fix.




That's weird though, if I don't use the SetLDFLAGS: -lstdc++ line, I get the c++ error during compilation


ld: Undefined symbols:
std::ios_base::Init::Init[in-charge]()
std::ios_base::Init::~Init[in-charge]()
std::cerr
....


If I add the line the errors disappear and compilation continues.



- Koen.




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to