timeGetTime() undefined identifier on Windows 10 Visual Studio 2015

Create issue
Issue #1122 resolved
Former user created an issue

The image I have attached should give you an idea of what I am dealing with.

Project: CEGUIBase-0 File: SimpleTimer.cpp Line: 33 Error: 'timeGetTime': Identifier not found

Comments (7)

  1. Joshua Newcomb

    I am the one who originally posted this issue, I have found a solution. The solution it to undefine WIN32_LEAN_AND_MEAN for this particular source file. If you don't, the preprocessor will without fail remove the definition of timeGetTime() from the final product, causing compile issues. Hope this helps those compiling 0.8.X for windows.

  2. Lukas Meindl

    @Sunkin351 what I do not understand is why they would change this in Windows 10. I also do not find any info on this occuring in any other project.

  3. Lukas Meindl

    I think this only affects user projects that use this Macro, for whatever reason, universally in their project. I will add an undef, ifdefined, to get rid of the lean and min, just in case.

  4. Lukas Meindl

    This above fix should not change any working projects and should fix your problem. If there is any thing else coming up please report it.

  5. Log in to comment