[GRLUG] C and C++ Development and GCC
Carlus Henry
carlushenry at gmail.com
Sun Sep 10 08:22:32 EDT 2006
Al,
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.
Thanks
Carlus
On 9/9/06, Al Tobey <tobert at gmail.com> wrote:
>
> 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
> >
> >
> >
> _______________________________________________
> grlug mailing list
> grlug at grlug.org
> http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shinobu.grlug.org/pipermail/grlug/attachments/20060910/0af21b48/attachment-0001.htm
More information about the grlug
mailing list