|
|
"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.
|
|