List:MySQL++« Previous MessageNext Message »
From:Tomalak Geret'kal Date:January 26 2011 10:21am
Subject:Re: error C3861: 'time': identifier not found
View as plain text  
On 26/01/2011 10:15, dan g. wrote:
> Anyway tonight I decided to break off the database portion of the code and make
> it into a library so i can use it in a world builder/editor GUI app i'm making
> as well.
>
> 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
>
> I've been looking at any project settings differences I can between the two but
> I'm drawing a blank..  I searched for this error in the mailing list search
> engine and found nothing.

Dan,

The line contains a reference to standard time(0), which is 
properly brought into scope at the top of cpool.h with

#include <time.h>

Idiomatically, this should be

#include <ctime>

However, both are perfectly valid. Seems like perhaps your 
toolchain's standard library headers are not in the right place?

Only thing I can think of.

Tom
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