Help - std::string

Jim Gifford jim@jg555.com
Mon Aug 11 15:10:00 GMT 2003


Still no luck

make  all-am
make[1]: Entering directory `/usr/src/cone-0.52/maildir'
Compiling maildirsearch.c
Compiling maildirsearchC.cpp
In file included from maildirsearchC.cpp:7:
maildirsearch.h:87:18: string: No such file or directory
In file included from maildirsearchC.cpp:7:
maildirsearch.h:95: error: syntax error before `;' token
maildirsearch.h:97: error: syntax error before `;' token
maildirsearch.h:103: error: `string' undeclared in namespace `std'
maildirsearch.h:103: error: parse error before `)' token
maildirsearch.h: In member function `int mail::Search::setString(...)':
maildirsearch.h:105: error: `String' undeclared (first use this function)
maildirsearch.h:105: error: (Each undeclared identifier is reported only
once
   for each function it appears in.)
maildirsearch.h:105: error: `s' undeclared (first use this function)
make[1]: *** [maildirsearchC.o] Error 1
make[1]: Leaving directory `/usr/src/cone-0.52/maildir'
make: *** [all] Error 2

----- Original Message ----- 
From: "John Love-Jensen" <eljay@adobe.com>
To: "Jim Gifford" <jim@jg555.com>; <gcc-help@gcc.gnu.org>
Sent: Monday, August 11, 2003 7:59 AM
Subject: Re: Help - std::string


> Hi Jim,
>
> The std::string is located in <string>, not in <string.h> (which isn't a
C++
> header file).
>
> FYI.  The Standard C Library's string routines are in <cstring>, not
> <string.h>.
>
> HTH,
> --Eljay
>
>
>



More information about the Gcc-help mailing list