There is no "magic" in codeblocks. I suspect you are using linux? Then there is probably a '`wx-config --libs`' in the linker tab -> other linker options. This is a command line tool provided by wxWidgets on linux to automatically gather all needed information to link wxWidgets. You can type wx-config --help in a terminal window and see all possible options...
I am using freebsd13. I am familiar with wx-config but do not see it in the build log. It is cool that the project builds perfectly. But a great deal of information is happening behind the scenes, aka magically. I can't find where to edit it. Since all the wx libraries that are linked do not appear in the gui, i fear what will happen when i want to link custom libraries.
You can look at if you want. Here is the entire log:
-------------- Clean: Debug in aalearn (compiler: LLVM Clang Compiler)---------------
Cleaned "aalearn - Debug"
-------------- Build: Debug in aalearn (compiler: LLVM Clang Compiler)---------------
clang++ -Weverything -I/usr/local/lib/wx/include/gtk3-unicode-3.2 -I/usr/local/include/wx-3.2 -DWXUSINGDLL -D__WXGTK3__ -D__WXGTK__ -pthread -Wall -g -D__WXGTK3__ -D__WXGTK__ -ftrapv -m64 -w -g -std=c++14 -c /hd2/wkspc/cb_wkspc/aalearn/aalearnApp.cpp -o obj/Debug/aalearnApp.o
clang++ -Weverything -I/usr/local/lib/wx/include/gtk3-unicode-3.2 -I/usr/local/include/wx-3.2 -DWXUSINGDLL -D__WXGTK3__ -D__WXGTK__ -pthread -Wall -g -D__WXGTK3__ -D__WXGTK__ -ftrapv -m64 -w -g -std=c++14 -c /hd2/wkspc/cb_wkspc/aalearn/aalearnMain.cpp -o obj/Debug/aalearnMain.o
clang++ -o bin/Debug/aalearn obj/Debug/aalearnApp.o obj/Debug/aalearnMain.o -L/usr/local/lib -pthread -lwx_gtk3u_xrc-3.2 -lwx_gtk3u_html-3.2 -lwx_gtk3u_qa-3.2 -lwx_gtk3u_core-3.2 -lwx_baseu_xml-3.2 -lwx_baseu_net-3.2 -lwx_baseu-3.2 -m64
Output file is bin/Debug/aalearn with size 1.07 MB
Process terminated with status 0 (0 minute(s), 7 second(s))
0 error(s), 0 warning(s) (0 minute(s), 7 second(s))