Overview
Features
Download
Documentation
Community
Add-Ons & Services

Error about identifier "Int64" is undefined

Please post support and help requests here.

Error about identifier "Int64" is undefined

Postby shaounlimit » 06 Apr 2013, 15:51

I tried to compile my code. But it has the error compile messages from Timestamp.h in Poco

identifier "Int64" is undefined
typedef Int64 TimeVal; /// monotonic UTC time value in microsecond resolution
identifier "Int64" is undefined
typedef Int64 UtcTimeVal; /// monotonic UTC time value in 100 nanosecond resolution
identifier "Int64" is undefined
typedef Int64 TimeDiff; /// difference between two timestamps in microseconds

I wonder what causes this problem. Is there absent any library or anything else?

Thank you

best regards

Yu
shaounlimit
 
Posts: 3
Joined: 06 Apr 2013, 15:31

Re: Error about identifier "Int64" is undefined

Postby alex » 06 Apr 2013, 16:02

Strange, because Timestamp.h includes Foundation.h, which includes Types.h, where Int64 is defined.

What platform and what version of Poco?
alex
 
Posts: 1086
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Error about identifier "Int64" is undefined

Postby shaounlimit » 06 Apr 2013, 16:20

I used Poco1.4, and platform is RHEL 6.01. I used Stopwatch start() and eslapsed() in my code. When I comments Poco::Stopwatch and start and eslapsed functions. The compile success. But when I add them. the error message will show.
shaounlimit
 
Posts: 3
Joined: 06 Apr 2013, 15:31

Re: Error about identifier "Int64" is undefined

Postby alex » 06 Apr 2013, 17:28

still strange, but if you add this early in your application, it should take care of it:

Code: Select all
#include "Poco/Types.h"
alex
 
Posts: 1086
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron