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