List:MySQL++« Previous MessageNext Message »
From:dan g. Date:January 26 2011 10:38am
Subject:Re: error C3861: 'time': identifier not found
View as plain text  

Wow, thank you, I did accidentally have an include path that went one too deep 
into ZThread's includes structure.. and there was a Time.h in there.


----- Original Message ----
From: Jonathan Wakely <mysql@stripped>
To: dan g. <bazehead@stripped>
Cc: plusplus@stripped
Sent: Wed, January 26, 2011 2:22:46 AM
Subject: Re: error C3861: 'time': identifier not found

On 26 January 2011 10:15, dan g. wrote:
>
> At some point during this process, including mysql++.h in the new library i 
>made
> started causing this compile error:
>
> 1>d:\mysql++\lib\cpool.h(221) : error C3861: 'time': identifier not found

Did you try looking on line 221 of cpool.h ?

It's trying to use the standard library function time(), which is
declared in <time.h>, which is included by cpool.h on line 28

If <time.h> doesn't declare time() on your system, then either your
development environment is totally borked, or you've got another file
called time.h in your include paths and it doesn't declare time().

I suspect it's the latter - and the answer is that you should not
reuse the names of standard library headers for your own files.

Thread
error C3861: 'time': identifier not founddan g.26 Jan
  • Re: error C3861: 'time': identifier not foundTomalak Geret'kal26 Jan
  • Re: error C3861: 'time': identifier not foundJonathan Wakely26 Jan
    • Re: error C3861: 'time': identifier not founddan g.26 Jan
      • Re: error C3861: 'time': identifier not foundJonathan Wakely26 Jan
        • Re: error C3861: 'time': identifier not foundTomalak Geret'kal26 Jan
          • Re: error C3861: 'time': identifier not foundChris Frey26 Jan
            • Re: error C3861: 'time': identifier not foundTomalak Geret'kal27 Jan
              • Re: error C3861: 'time': identifier not foundJonathan Wakely27 Jan