I’m trying to use a static library that use some includes files of windows sdk (winsock2.h) but I get compilation errors about ambiguous symbols: DWORD and INT.
I searched in the documentation and those symbols appears to be, in unreal, typedef of “FUnusableClass”.
Why prevent the use of those symbols?
Maybe we are not supposed to use Windows stuff directly and must use Unreal’s instead, like here?
What I’m trying to do is integrate a library we made, based on network library asio (Asio C++ Library), in our unreal project. So what can/should i do?
You dont actually include “MyWindowStuff.h” you substitute that for the headers that require windows platform types. So in your case the ffmpeg headers.
-this is the error
1>C:\Program Files (x86)\Windows Kits\8.1\include\shared\rpcasync.h(126): error C2872: ‘UINT’ : ambiguous symbol
1> could be ‘C:\Program Files (x86)\Windows Kits\8.1\include\shared\minwindef.h(177) : unsigned int UINT’
1> or ‘C:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\Core\Public\Core.h(491) : DoNotUseOldUE4Type::UINT’
Please explain how can I fix it.