I'm running the latest version (2018-09) of Eclipse in windows 10 using msys2 (like MinGW but newer). I have everything compiling but I would like to use wx-config directly in the linker options rather than having to copy-paste.
On the command line, this works:
Code: Select all
$ g++ -o "simple-wx" ./app.o ./mainfrm.o ./wnd.o -lwx_baseu-3.1 -lwx_mswu_core-3.1 -lwx_mswu_gl-3.1 -lwxpng-3.1 -lopengl32 `/msys64/bin/wx-config --libs`
Code: Select all
$ g++ -mwindows `/msys64/bin/wx-config --libs` -o "simple-wx" ./app.o ./mainfrm.o ./wnd.o -lwx_baseu-3.1 -lwx_mswu_core-3.1 -lwx_mswu_gl-3.1 -lwxpng-3.1 -lopengl32
So, where should I add wx-config in order to get linking to work? (wx-config appears to work fine in the compiler settings)
Rob.