User forums > Using Code::Blocks
Cannot build after moving to ubuntu 9.10
(1/1)
cecilio:
I'm trying to compile and build an app. using wxWidgets. The app. compiled and linked ok in 8.04 and 9.04 but after moving to 9.10 I no longer can build. I get the following error:
--- Code: ---Linking executable: ../../z_gtk_debug/lenmus
/usr/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 4 seconds)
1 errors, 1 warnings
--- End code ---
I have uninstalled and reínstalled C::B but the error continues. Any help please? my knowledge of linux is minimal!
Cecilio
oBFusCATed:
Do you have the -dev packages of the lib you try to link?
cecilio:
Thanks for answering.
--- Quote from: oBFusCATed on January 05, 2010, 10:03:27 pm ---Do you have the -dev packages of the lib you try to link?
--- End quote ---
Sorry, but my knowledge of Linux is minimal. I don't understand what you said "the -dev packages of the lib". :shock: How can I check if I have 'that'?
I'm not trying explicitly to link to that library. I'm assuming it is required by something unknown to me, wxWidgets or any other thing. :(
I've been using CodeBlock to build my app. for three years and never had this problem! It is something related to moving to 9.10. I upgraded two days ago and since them I'm having this problem!
Thank you
oBFusCATed:
You need wxgtk-dev, wxwidgets-dev or something like that, I'm not an ubuntu user.
Please learn how to install things on you linux distro, there is plenty of info on the net.
cecilio:
Thanks. I installed libgtk-dev and that solved the problem.
Thank you.
Cecilio
Navigation
[0] Message Index
Go to full version