Al,<br><br>This worked like a charm. You were right, I was using the gcc instead of g++. Once I used g++ it just started to work.<br><br>Thanks<br>Carlus<br><br><p><DEFANGED_div><DEFANGED_span class="gmail_quote">On 9/9/06, <b class="gmail_sendername">
Al Tobey</b> <<a href="mailto:tobert@gmail.com">tobert@gmail.com</a>> wrote:</DEFANGED_span><blockquote class="gmail_quote" DEFANGED_style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 9/9/06, Carlus Henry <
<a href="mailto:carlushenry@gmail.com">carlushenry@gmail.com</a>> wrote:<br>> Hey everyone...<br>><br>> I just completed installing Mandriva 2005 LE. I know that it is an earlier<br>> distribution but I was desperate and it was the only distribution of linux
<br>> that I had availble at the time. So far so good. I am very pleased,<br>> however I am struggling a bit with developing C and C++ programs.<br>><br>> I am a Software Developer with 6 years experience looking to expand my
<br>> programming language portfolio...if you will. I am using the following as<br>> my tutorial and beginning program:<br>><br>> <a href="http://www.cplusplus.com/doc/tutorial/program_structure.html">http://www.cplusplus.com/doc/tutorial/program_structure.html
</a><br>><br>> As you can see from this link it is just a simple Hello World program.<br>> However, when I try to compile it using gcc-3.4.3, I get the error attached.<br>> If anyone has any experience developing C++ and has a clue on the problem
<br>> that I am currently facing and how to resolve it, that would be greatly<br>> appreciated.<br><br>Perhaps try:<br><br>g++ -lstdc++ foo.cpp<br><br>The -lstdc++ shouldn't be necessary with g++, but weird things happen.
<br><br>Maybe you were calling gcc instead of g++? I think they're basically<br>interchangeable but g++ implies a few C++ options like linking to the<br>C++ standard library.<br><br>-Al Tobey<br><br>> Thanks<br>> Carlus
<br>><br>><br>><br>> _______________________________________________<br>> grlug mailing list<br>> <a href="mailto:grlug@grlug.org">grlug@grlug.org</a><br>> <a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug">
http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br>><br>><br>><br>_______________________________________________<br>grlug mailing list<br><a href="mailto:grlug@grlug.org">grlug@grlug.org</a><br><a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug">
http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br></blockquote></p><DEFANGED_div><br>