[GRLUG] C and C++ Development and GCC
Al Tobey
tobert at gmail.com
Sat Sep 9 22:46:30 EDT 2006
On 9/9/06, Carlus Henry <carlushenry at gmail.com> wrote:
> Hey everyone...
>
> I just completed installing Mandriva 2005 LE. I know that it is an earlier
> distribution but I was desperate and it was the only distribution of linux
> that I had availble at the time. So far so good. I am very pleased,
> however I am struggling a bit with developing C and C++ programs.
>
> I am a Software Developer with 6 years experience looking to expand my
> programming language portfolio...if you will. I am using the following as
> my tutorial and beginning program:
>
> http://www.cplusplus.com/doc/tutorial/program_structure.html
>
> As you can see from this link it is just a simple Hello World program.
> However, when I try to compile it using gcc-3.4.3, I get the error attached.
> If anyone has any experience developing C++ and has a clue on the problem
> that I am currently facing and how to resolve it, that would be greatly
> appreciated.
Perhaps try:
g++ -lstdc++ foo.cpp
The -lstdc++ shouldn't be necessary with g++, but weird things happen.
Maybe you were calling gcc instead of g++? I think they're basically
interchangeable but g++ implies a few C++ options like linking to the
C++ standard library.
-Al Tobey
> Thanks
> Carlus
>
>
>
> _______________________________________________
> grlug mailing list
> grlug at grlug.org
> http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug
>
>
>
More information about the grlug
mailing list