gnu.gcc.help
[Top] [All Lists]

Re: Newbie gcc question

Subject: Re: Newbie gcc question
From: Paul Pluzhnikov
Date: Sat, 29 Jul 2006 22:25:54 -0700
Newsgroups: gnu.gcc.help
"Nate Sternberg" <natesternberg@xxxxxxxxx> writes:

> $ gcc test2.cpp -o test2.exe
> /cygdrive/c/DOCUME~1/Nate/LOCALS~1/Temp/cc67acqk.o:test2.cpp:(.text+0xd):
> undefined reference to `std::basic_string<char, std::char_traits<char>,
...
> This must be something obvious.  Can someone nudge me in the right
> direction?

Always use 'g++' when compiling and linking C++ code.
Contrary to popular belief, 'gcc' and 'g++' are not at all the same.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy