Author Topic: why c:b tryto link statically, while I did not told it to do so  (Read 4386 times)

Offline alexbour

  • Multiple posting newcomer
  • *
  • Posts: 10
why c:b tryto link statically, while I did not told it to do so
« on: February 06, 2017, 03:14:02 am »
this it my output:

-------------- Clean: Debug in tiva_sw2 (compiler: GNU GCC Compiler)---------------

Cleaned "tiva_sw2 - Debug"

-------------- Build: Debug in tiva_sw2 (compiler: GNU GCC Compiler)---------------

g++ -std=c++98 -m64 -g -I/usr/include/libusb-1.0 -DwxSIZE_T_IS_UINT -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DwxUSE_GUI=1 -D_WXDEBUG_ -DWXDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DwxUSE_ANY -Iwxwidgets_git/include -Iwxwidgets_git/interface -Ilibusb-1.0.20 -Iwxwidgets_git/include -Iwxwidgets_git/build/lib/wx/include -Iwxwidgets_git/build/lib/wx/include/gtk2-unicode-3.1 -Iwxwidgets_git/build/lib/wx/include/gtk3-unicode-3.1/ -c /home/alexb/Projects/tiva_sw2/complex.cpp -o ./complex.o
g++ -std=c++98 -m64 -g -I/usr/include/libusb-1.0 -DwxSIZE_T_IS_UINT -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DwxUSE_GUI=1 -D_WXDEBUG_ -DWXDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DwxUSE_ANY -Iwxwidgets_git/include -Iwxwidgets_git/interface -Ilibusb-1.0.20 -Iwxwidgets_git/include -Iwxwidgets_git/build/lib/wx/include -Iwxwidgets_git/build/lib/wx/include/gtk2-unicode-3.1 -Iwxwidgets_git/build/lib/wx/include/gtk3-unicode-3.1/ -c /home/alexb/Projects/tiva_sw2/display.cpp -o ./display.o
g++ -std=c++98 -m64 -g -I/usr/include/libusb-1.0 -DwxSIZE_T_IS_UINT -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DwxUSE_GUI=1 -D_WXDEBUG_ -DWXDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DwxUSE_ANY -Iwxwidgets_git/include -Iwxwidgets_git/interface -Ilibusb-1.0.20 -Iwxwidgets_git/include -Iwxwidgets_git/build/lib/wx/include -Iwxwidgets_git/build/lib/wx/include/gtk2-unicode-3.1 -Iwxwidgets_git/build/lib/wx/include/gtk3-unicode-3.1/ -c /home/alexb/Projects/tiva_sw2/dspfun.cpp -o ./dspfun.o
g++ -std=c++98 -m64 -g -I/usr/include/libusb-1.0 -DwxSIZE_T_IS_UINT -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DwxUSE_GUI=1 -D_WXDEBUG_ -DWXDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DwxUSE_ANY -Iwxwidgets_git/include -Iwxwidgets_git/interface -Ilibusb-1.0.20 -Iwxwidgets_git/include -Iwxwidgets_git/build/lib/wx/include -Iwxwidgets_git/build/lib/wx/include/gtk2-unicode-3.1 -Iwxwidgets_git/build/lib/wx/include/gtk3-unicode-3.1/ -c /home/alexb/Projects/tiva_sw2/fcoefit.cpp -o ./fcoefit.o
g++ -std=c++98 -m64 -g -I/usr/include/libusb-1.0 -DwxSIZE_T_IS_UINT -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DwxUSE_GUI=1 -D_WXDEBUG_ -DWXDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DwxUSE_ANY -Iwxwidgets_git/include -Iwxwidgets_git/interface -Ilibusb-1.0.20 -Iwxwidgets_git/include -Iwxwidgets_git/build/lib/wx/include -Iwxwidgets_git/build/lib/wx/include/gtk2-unicode-3.1 -Iwxwidgets_git/build/lib/wx/include/gtk3-unicode-3.1/ -c /home/alexb/Projects/tiva_sw2/monitor.cpp -o ./monitor.o
g++ -std=c++98 -m64 -g -I/usr/include/libusb-1.0 -DwxSIZE_T_IS_UINT -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DwxUSE_GUI=1 -D_WXDEBUG_ -DWXDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DwxUSE_ANY -Iwxwidgets_git/include -Iwxwidgets_git/interface -Ilibusb-1.0.20 -Iwxwidgets_git/include -Iwxwidgets_git/build/lib/wx/include -Iwxwidgets_git/build/lib/wx/include/gtk2-unicode-3.1 -Iwxwidgets_git/build/lib/wx/include/gtk3-unicode-3.1/ -c /home/alexb/Projects/tiva_sw2/point.cpp -o ./point.o
g++ -std=c++98 -m64 -g -I/usr/include/libusb-1.0 -DwxSIZE_T_IS_UINT -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DwxUSE_GUI=1 -D_WXDEBUG_ -DWXDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DwxUSE_ANY -Iwxwidgets_git/include -Iwxwidgets_git/interface -Ilibusb-1.0.20 -Iwxwidgets_git/include -Iwxwidgets_git/build/lib/wx/include -Iwxwidgets_git/build/lib/wx/include/gtk2-unicode-3.1 -Iwxwidgets_git/build/lib/wx/include/gtk3-unicode-3.1/ -c /home/alexb/Projects/tiva_sw2/tiva_sw2Main.cpp -o ./tiva_sw2Main.o
g++ -std=c++98 -m64 -g -I/usr/include/libusb-1.0 -DwxSIZE_T_IS_UINT -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DwxUSE_GUI=1 -D_WXDEBUG_ -DWXDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DwxUSE_ANY -Iwxwidgets_git/include -Iwxwidgets_git/interface -Ilibusb-1.0.20 -Iwxwidgets_git/include -Iwxwidgets_git/build/lib/wx/include -Iwxwidgets_git/build/lib/wx/include/gtk2-unicode-3.1 -Iwxwidgets_git/build/lib/wx/include/gtk3-unicode-3.1/ -c /home/alexb/Projects/tiva_sw2/usbComm.cpp -o ./usbComm.o
g++ -std=c++98 -m64 -g -I/usr/include/libusb-1.0 -DwxSIZE_T_IS_UINT -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DwxUSE_GUI=1 -D_WXDEBUG_ -DWXDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DwxUSE_ANY -Iwxwidgets_git/include -Iwxwidgets_git/interface -Ilibusb-1.0.20 -Iwxwidgets_git/include -Iwxwidgets_git/build/lib/wx/include -Iwxwidgets_git/build/lib/wx/include/gtk2-unicode-3.1 -Iwxwidgets_git/build/lib/wx/include/gtk3-unicode-3.1/ -c /home/alexb/Projects/tiva_sw2/options.cpp -o ./options.o
g++ -std=c++98 -m64 -g -I/usr/include/libusb-1.0 -DwxSIZE_T_IS_UINT -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DwxUSE_GUI=1 -D_WXDEBUG_ -DWXDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DwxUSE_ANY -Iwxwidgets_git/include -Iwxwidgets_git/interface -Ilibusb-1.0.20 -Iwxwidgets_git/include -Iwxwidgets_git/build/lib/wx/include -Iwxwidgets_git/build/lib/wx/include/gtk2-unicode-3.1 -Iwxwidgets_git/build/lib/wx/include/gtk3-unicode-3.1/ -c /home/alexb/Projects/tiva_sw2/tiva_sw2App.cpp -o ./tiva_sw2App.o
g++  -o ./bin/Debug/tiva ./complex.o ./display.o ./dspfun.o ./fcoefit.o ./monitor.o ./point.o ./tiva_sw2Main.o ./usbComm.o ./options.o ./tiva_sw2App.o  -m64 -L/home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib -pthread   /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_gtk3u_xrc-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_gtk3u_qa-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_baseu_net-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_gtk3u_html-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_gtk3u_adv-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_gtk3u_core-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_baseu_xml-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_baseu-3.1.a -lgthread-2.0 -pthread -lX11 -lXxf86vm -lSM -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lpng -lexpat -lwxregexu-3.1 -lwxtiff-3.1 -lwxjpeg-3.1 -lz -ldl -lm -llzma  -m64 -lglut -lm   -L  /usr/lib/gcc/x86_64-redhat-linux/6.2.1/32/ -L /opt/wx31/lib/ -L /wxwidgets_git/build/lib/ -L/opt/wxgt/lib/ 
g++: error: /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_baseu_net-3.1.a: No such file or directory
g++: error: /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_gtk3u_core-3.1.a: No such file or directory
g++: error: /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_baseu-3.1.a: No such file or directory
Process terminated with status 1 (0 minute(s), 11 second(s))
3 error(s), 0 warning(s) (0 minute(s), 11 second(s))
 
My .cbp file has no word static anyware, why c:b try to link staticaly.
thanks,
Alex

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: why c:b tryto link statically, while I did not told it to do so
« Reply #1 on: February 06, 2017, 10:26:18 am »
Then what is this:
/home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_gtk3u_xrc-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_gtk3u_qa-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_baseu_net-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_gtk3u_html-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_gtk3u_adv-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_gtk3u_core-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_baseu_xml-3.1.a /home/alexb/Projects/tiva_sw2/wxwidgets_git/build/lib/libwx_baseu-3.1.a

Obviously you're passing paths to static libs to the linker. Probably this is what wx-config --libs is returning?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3352
Re: why c:b tryto link statically, while I did not told it to do so
« Reply #2 on: February 06, 2017, 11:23:19 am »