oxygine / oxygine-framework

Oxygine is C++ engine and framework for 2D games on iOS, Android, Windows, Linux and Mac
http://oxygine.org/
Other
787 stars 173 forks source link

Error when running examples #159

Open hankyu1 opened 5 years ago

hankyu1 commented 5 years ago

I'm getting this error when i try to build ecample projects:

Including <winsock2.h> after <winsock.h> is unsupported.

Anyone else getting this error as well?

codeQueries commented 3 years ago

when i was using winsock, i found a conflict with oxygen-framework.h on line 140; `#ifdef OUT

undef OUT

endif`

Winsock2.h also uses "OUT" on lines 1064 - 1065 IN OUT LPQOS lpSQOS, IN OUT LPQOS lpGQOS,

With this error: 1...winsock2.h(1064): error C2061: syntax error: identifier 'OUT'