User forums > Using Code::Blocks
CodeBlocks Linux & wxWidgets : linking problems [SOLVED]
(1/1)
kayamel:
Hi,
After compiling wxWidgets with a default config, I installed CB following the tutorial on linux on the CB wiki. I then did a test to compile a wxWidgets project by following what is told on the wiki of wxWidgets (adding `wx-config --cflags` under "Compiler settings" and `wx-config --libs` under the Linker settings.
I had the following error :
--- Code: --- cannot find -l-L/usr/local/lib -pthread /usr/local/lib/libwx_gtk2-2.8
--- End code ---
I then recompiled wxWidgets with monolithic, disable shared, enable ansi, and again had :
--- Code: ---cannot find -l-L/usr/local/lib -pthread /usr/local/lib/libwx_gtk2-2.8.a -pthread -L/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0 -lXinerama -lpng -lz -ljpeg -ltiff -lwxregexu-2.8 -lwxexpat-2.8 -lz -ldl -lm
--- End code ---
I tried rebuilding CB with non effects.
CB : nightly build from svn
Fedora 7
wxWidgets 2.8.4
Thanks
Biplab:
--- Quote from: kayamel on August 06, 2007, 12:09:36 pm --- I then did a test to compile a wxWidgets project by following what is told on the wiki of wxWidgets (adding `wx-config --cflags` under "Compiler settings" and `wx-config --libs` under the Linker settings.
--- End quote ---
I believe you've added that command, `wx-config --libs` , in Link libraries section, which causing this error. Remove it and add it in Other linker options section.
Also give Code::Blocks' wxWidgets wizard a try. You won't have to do these things manually. ;)
kayamel:
Oh dear me. Thank you. That was it. Spent whole friday over that.
Just can't understand how I missed that when it is clearly mentionned in the wiki. :shock:
Thanks a bunch. That made my whole week I guess...
Navigation
[0] Message Index
Go to full version