[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string class library issues
From: |
Paul Pluzhnikov |
Subject: |
Re: string class library issues |
Date: |
Wed, 12 Jul 2006 20:14:19 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
"Mike Dunlavey" <mdunlavey@pharsight.com> writes:
> If I try the '#include <string>' statement instead of strclass.h,
> I get a much more longer and less helpful list of unresolved
> references.
Most likely you are doing something like this:
gcc -c test.cpp # compiles test.cpp in C++ mode, because of the .cpp
extension
gcc test.o # links in C mode because 'gcc' is a *C* compiler.
Always use 'g++' to compile and link C++ code.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.