Corvusoft / restbed

Corvusoft's Restbed framework brings asynchronous RESTful functionality to C++14 applications.
http://www.corvusoft.co.uk
Other
1.93k stars 379 forks source link

build error on mingw #496

Open mipac opened 3 years ago

mipac commented 3 years ago

the win32 option added to CMakeLists.txt is only for msvc that cause build fail with gcc on windows

if ( WIN32 ) add_definitions( -DWIN_DLL_EXPORT ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4251" ) endif ( )

maggu2810 commented 3 years ago

I created a restbed package for msys2. So you could get a pre-compiled version (with dependencies) if you would lile to ise msys2 for your mingw environment. Another option is to look at the patches I created to get the build running.

maggu2810 commented 3 years ago

https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-restbed

mipac commented 3 years ago

thank you very much! I leave the issue open, because a portable cmakelist is possible regards