timeGetTime() undefined identifier on Windows 10 Visual Studio 2015

Issue #1122 resolved
Anonymous 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

    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.

  3. Log in to comment