|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
MS Visual C++ not recognising headers
PHP Code:
Compiling... Time_Temp_Test.cpp Time_Temp_Test.cpp(13) : error C3861: 'time': identifier not found, even with argument-dependent lookup Time_Temp_Test.cpp(14) : error C3861: 'localtime': identifier not found, even with argument-dependent lookup Time_Temp_Test.cpp(15) : error C3861: 'asctime': identifier not found, even with argument-dependent lookup Am F'd by the compiler failing to recognize the time and date functions. Is there something about MS Visual C++ which makes this difficult. I have the same code in other compilers and no probs. Any help appreciated. |
|
#2
|
||||
|
||||
|
try have the #include "stdafx.h" as the first line, I remember
having some issues when it wasn't first line. |
|
#3
|
|||
|
|||
|
Quote:
Thanks shemzilla. Often wondered about that and will keep it first, but found problem which approaches a bug in the way the project dialog works. The problem was Visual Studio was creating project files to use pre-compiled headers. However, the version of XP I was using did not have the control time language for dot Net. I think this resulted in the option to use pre-compiled headers, always being turn on, with the option to turn off, never appearing in the dialog box. When I ran the project on an XP system with a full installation of dot Net, the problem became apparent. I'm not familiar with all the options in MS VC++ and this was a real trap. Last edited by Buddy_99 : December 13th, 2007 at 11:45 PM. Reason: Make clearer |
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > MS Visual C++ not recognising headers |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|