From: SourceForge.net <no...@so...> - 2004-03-09 23:56:49
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2464365 By: kristo605 G++ is just like gcc but it automatically includes the necessary libs to compile C++ code. The convention is to use gcc for C code, and g++ for C++. Hope this helps. Kristo ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=286529 |
From: SourceForge.net <no...@so...> - 2004-03-10 13:16:26
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2465127 By: earnie GCC and G++ are frontends to the actual compiler. You can use GCC to compile C++ code and it will compile the code appropriately. However, the stdc++ library will not be included in the link step by default unless you use G++. So you can gcc -c foo.c gcc -o foo foo.o -lstdc++ OR g++ -c foo.c g++ -o foo foo.o HTH, Earnie ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=286529 |