On Jan 1, 2005, at 8:53 AM, Dan Sommers wrote: On Jan 1, 2005, at 8:53 AM, Richard Cobbe wrote:
[Use g++ instead of gcc.]
Thank you both very much. That worked.
Richard also wrote:
However, g++ also automatically links its executables against the C++ standard library, while gcc doesn't. It is possible to use gcc to link C++ program by specifying the C++ standard library directly on the command line...
How does one do that, please? Seemingly the C++ standard library in my installation is /usr/lib/gcc/darwin/3.3/libstdc++.a; I tried
gcc -l/usr/lib/gcc/darwin/3.3/libstdc++.a -o hello hello.cpp gcc -l /usr/lib/gcc/darwin/3.3/libstdc++.a -o hello hello.cpp gcc -I/usr/lib/gcc/darwin/3.3 -lstdc++ -o hello hello.cpp
but none of these worked.
Thank you again, Jonathan
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users