C4005 APIENTRY Makro Neudefinition in minwindef.h and thus 2 unknown identifier

  • Thread starter Thread starter JJ_Tian
  • Start date Start date
J

JJ_Tian

Guest
Hello, I'm working on VS2019, x64 Windows (SUBSYSTEM:WINDOWS). The compiler told me that a warning C4005 :APIENTRY Makro Neudefinition in minwindef.h was caused, and then C3861 2 identifiers (gluPerspective and gluLookAt) were thus caused bv the first warning(I saw the definition in glfw.h and glu.h, the both functions are declared like this syntax: #define APIENTRY gluPerspective(xxx,xxx,xxx,xxx) ,So i think it is related to the definition of APIENTRY)

Should I change the source files ? What should i add or delete?

Looking forward your answer!

Continue reading...
 
Back
Top