I'm building a C++ project which includes 2 libraries whom implicitly include for 2 times windows.h
:
Knowing that I need these two libraries into my project, how do I to get around this issue?
Any brilliant idea, please?
尝试使用某些外观界面隐藏提到的库,这些外观在同一编译单元中不可见。
I encountered the same issue when building a Win32 app in visual studio 2010. A solution that worked for me was:
#include <windows.h>
with #include <afxwin.h>
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.