To understand why, i would to know, where is the #include to include winbase.h ?
Last edited by Suryavarman on Thu Aug 31, 2017 5:10 pm, edited 5 times in total.
« Let us be firm, pure and faithful; at the end of our labours, there is the greatest glory in the world, that of the humans who have not given in. »
«Soyons fermes, purs et fidèles; au bout de nos peines il y a la plus grande gloire du monde, celle des Hommes qui n'ont pas cédé. »
CDG
#elif OGRE_PLATFORM == OGRE_PLATFORM_WIN32
# include "WIN32/OgreConfigDialogImp.h"
OgreMain\include\WIN32\OgreConfigDialogImp.h
#include <windows.h>
x:\MinGW\include\windows.h
#include <winbase.h>
« Let us be firm, pure and faithful; at the end of our labours, there is the greatest glory in the world, that of the humans who have not given in. »
«Soyons fermes, purs et fidèles; au bout de nos peines il y a la plus grande gloire du monde, celle des Hommes qui n'ont pas cédé. »
CDG
« Let us be firm, pure and faithful; at the end of our labours, there is the greatest glory in the world, that of the humans who have not given in. »
«Soyons fermes, purs et fidèles; au bout de nos peines il y a la plus grande gloire du monde, celle des Hommes qui n'ont pas cédé. »
CDG
if (MINGW)
add_definitions(-D_WIN32_WINNT=0x0500)
# set architecture to i686, since otherwise some versions of MinGW can't link
# the atomic primitives
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i686")
# Fpermissive required to let some "non-standard" casting operations in the plugins pass
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
# disable this optimisation because it breaks release builds (reason unknown)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-tree-slp-vectorize")
# Ignore some really annoying warnings which also happen in dependencies
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=cast-qual -Wno-unused-local-typedefs")
endif ()
Now i call cmake with -D_WIN32_WINNT = 0x0501 (windows xp) and not with windows seven value to keep the compatibility with XP and vista.
//No help, variable specified on the command line.
_WIN32_WINNT:UNINITIALIZED=0x0501
EDIT:
Ok i'm stupid it's just an add_defitions without cmake variable. It's a bug from ogre CMakelists.txt. I'm oblige to edit the CMakeLists.txt.
« Let us be firm, pure and faithful; at the end of our labours, there is the greatest glory in the world, that of the humans who have not given in. »
«Soyons fermes, purs et fidèles; au bout de nos peines il y a la plus grande gloire du monde, celle des Hommes qui n'ont pas cédé. »
CDG
« Let us be firm, pure and faithful; at the end of our labours, there is the greatest glory in the world, that of the humans who have not given in. »
«Soyons fermes, purs et fidèles; au bout de nos peines il y a la plus grande gloire du monde, celle des Hommes qui n'ont pas cédé. »
CDG