Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Problems with MSVC 2008 and time.h
Closed Thread
Old 02-23-2009, 12:59 AM   #1 (permalink)
 
Junior Techie

Join Date: Oct 2004

Posts: 73

MrSpecial is on a distinguished road

Send a message via AIM to MrSpecial
Default Problems with MSVC 2008 and time.h

I'm porting my c++ program over to MSVC 2008 EE from the 2005 EE edition, but I'm having trouble. During the build process I keep getting error messages such as these:

Code:
error C2061: syntax error : identifier 'clock_t'
error C3861: 'time': identifier not found
...
...
error C3861: 'clock': identifier not found
error C2065: 'c' : undeclared identifier
My code does indeed include time.h. I don't get any message saying that the program is unable to locate time.h, so it must be reading the file, right? Just to be sure, I've checked the VC Build/Include directory settings and everything appears to be properly configured. I've tried including ctime instead of time.h but I only get similar errors from the ctime file. Can anyone point out what I might be doing wrong?

Thanks.
MrSpecial is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On