It might be a problem with how you enter the library names.
I just created a new GUI template project, 'StaticlibLinking'. It doesn't
need a static lib, but I'm telling the linker to add one anyway: one from an old wx3.0.3 static build. Its filepath is /home/david/devel/wxWidgets-3.0.3/udb3static/lib/libwxscintilla-3.0.a
So I've put '/home/david/devel/wxWidgets-3.0.3/udb3static/lib/' in the Libraries Search Path field, and tried different library names in the Libraries field.
StaticLinking.png
Entering either
wxscintilla-3.0.a or
wxscintilla-3.0 built successfully,
Code: Select all
/usr/bin/g++ -o ../build-Debug/bin/StaticlibLinking @../build-Debug/StaticlibLinking/ObjectsList.txt -L. -L/home/david/devel/wxWidgets-3.0.3/udb3static/lib/ -lwxscintilla-3.0 -L/usr/lib/x86_64-linux-gnu -pthread -lwx_gtk2u_unofficial_xrc-3.1 -lwx_gtk2u_unofficial_html-3.1 -lwx_gtk2u_unofficial_qa-3.1 -lwx_gtk2u_unofficial_core-3.1 -lwx_baseu_unofficial_xml-3.1 -lwx_baseu_unofficial_net-3.1 -lwx_baseu_unofficial-3.1
but the linker could not find
wxscintilla.
What are the actual names of your two static libraries? And what do you call them in the Libraries field?
You do not have the required permissions to view the files attached to this post.