I'm trying to compile my project where I've just added the use of 'WinSock2.h'.I'm getting these errors:
c:\program files (x86)\windows kits\8.1\include\um\wingdi.h(2898): error C2208: '_POINTL' : no members defined using this type
c:\program files (x86)\windows kits\8.1\include\um\winuser.h(14564): error C2208: 'unsigned int' : no members defined using this type
more
I have searched solutions to my issue, I've added _WINSOCKAPI_ on preprocesseur rules and only the two errors up there are remaining. I have also tried adding WIN32_LEAN_AND_MEAN and still the same.
My project uses ALLEGRO library and "windows.h" file.
Have you a explanation of my problem?
The compilator errors point to files winuser, wingdi, propild, oaidl. These files has been added from the use of network library, on windows.h I guess. The offending lines deal of following field definitions: unit, date, position. All these name was already used on preprocessor definition on my project, leading to a conflict of definition.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.