Error Compiling wxwidgets-3.1.3 on windows10 with mingw compiler
Posted: Thu Mar 12, 2020 11:50 pm
I'm running Window 10 Pro, 64 bit, I downloaded C::B with the Mingw32 compiler and installed C::B and the compiler, set the path for the compiler. Next I downloaded the wxWidgets-3.1.3 (1).7z and unzipped it in C:\wxwidgets-3.1.3.and used the command prompt build as follows:
It all seems to compile till it get to the end when it attempts to build wxmsw323ud_gcc_custom.dll
I'm a newbie and have been struggling with this for several days. I would really appreciate some help. Thanks
Code: Select all
C:\wxWidgets-3.1.3\build\msw>mingw32-make -f makefile.gcc BUILD=release SHARED=1 UNICODE=1
Code: Select all
g++ -shared -fPIC -o ..\..\lib\gcc_dll\wxmsw313ud_gcc_custom.dll @..\..\lib\gcc_dll\wxmsw313ud_gcc_custom.dll.rsp -g -mthreads -L..\..\lib\gcc_dll -Wl,--out-implib=..\..\lib\gcc_dll\libwxmsw31ud.a -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lshlwapi -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lversion -lwsock32 -lwininet -loleacc -luxtheme ..\..\lib\gcc_dll\libwxscintillad.a
..\..\lib\gcc_dll/libwxexpatd.a(wxexpat_xmlparse.o): In function `writeRandomBytes_rand_s':
C:\wxWidgets-3.1.3\build\msw/../../src/expat/expat/lib/xmlparse.c:758: undefined reference to `_imp__rand_s'
collect2.exe: error: ld returned 1 exit status
makefile.gcc:5329: recipe for target '..\..\lib\gcc_dll\wxmsw313ud_gcc_custom.dll' failed
mingw32-make: *** [..\..\lib\gcc_dll\wxmsw313ud_gcc_custom.dll] Error 1