3 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Re: Problem compi...
FromSent OnAttachments
Brian CandlerOct 3, 2002 9:20 am 
Sam VarshavchikOct 3, 2002 2:44 pm 
Brian CandlerOct 4, 2002 2:48 am.Other
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Re: Problem compiling courier-imap-1.5.3.20020928 / Solaris 2.8Actions...
From:Brian Candler (B.Ca@pobox.com)
Date:Oct 4, 2002 2:48:41 am
List:net.sourceforge.lists.courier-users
Attachments:
courier-imap-cpp - 0.5k

On Thu, Oct 03, 2002 at 05:44:40PM -0400, Sam Varshavchik wrote:

Right. Replace all instances of "string" with "std::string", and "vector" with "std::vector" in maildirsearch.h. Case is sensitive, do not touch String.

Thanks for that. Of course that's only declarations of type "string", not structure members or include files called "string" :-)

So actually only three changes were required (attached), and it now compiles fine.

Cheers,

Brian.

--- courier-imap-1.5.3.20020928/maildir/maildirsearch.h.orig Mon Aug 12 19:30:52
2002 +++ courier-imap-1.5.3.20020928/maildir/maildirsearch.h Fri Oct 4 10:11:51 2002 @@ -90,14 +90,14 @@

struct maildir_searchengine sei;

- string String; + std::string String;

- vector<unsigned> rbuf; + std::vector<unsigned> rbuf; public: MaildirSearch(); virtual ~MaildirSearch();

- int setString(string s) + int setString(std::string s) { String=s; return maildir_search_start(&sei, s.c_str());