views:

78

answers:

1

I'm using CMake to create a visual studio project as I'm making a cross platform application and library, but I get errors like:

1>c:\program files\microsoft visual studio 10.0\vc\include\wchar.h(109): warning C4820: '_wfinddata64i32_t' : '4' bytes padding added after data member '_wfinddata64i32_t::attrib'

It compiles fine on GNU/Linux using gcc and I haven't tried MinGW. Yet.

+1  A: 

For the opengl errors, you need to include windows.h before including gl.h. Hope it helps.

#ifdef WIN32
# include <windows.h>
#endif
#include <GL/gl.h>
tibur
Thanks but luckily I still get to enjoy a wide range of padding warnings and every other error Visual Studio can give me.
Jookia