restbed icon indicating copy to clipboard operation
restbed copied to clipboard

build error on mingw

Open mipac opened this issue 4 years ago • 3 comments

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 ( )

mipac avatar Oct 07 '21 09:10 mipac

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 avatar Nov 13 '21 18:11 maggu2810

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

maggu2810 avatar Nov 13 '21 18:11 maggu2810

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

mipac avatar Nov 13 '21 19:11 mipac