Compiling Programs
Some time ago I wrote a program and compiled it successfully (on a machine running FC4).
Now I have Fedora 9 and I want to recompile the program - but I can't remember all that I did. Here is the result of my attempt. Code:
[Ian@localhost sourceETR]$ gcc *.cc TIA |
Looks like you need to install gtkmm (C++ bindings to GTK+). I don't know whether Fedora has packages for it, but of course you can install it from source. You should also use g++ for compiling C++ programs and you'll need to link gtkmm (see the documentation for it to see which flags to use).
|
I do have gtkmm24 and gtkmm24-devel installed. Is there something more I need? (or might I need to update my code?)
|
You need to tell the compiler where to find the headers and the libraries. Using "`pkg-config gtkmm-2.4 --cflags --libs`" when you run g++ will include all the relevant compiler options (see sections 1 and 2 of http://gtkmm.org/docs/gtkmm-2.4/docs...er-basics.html).
|
Do you have gtk+-devel(note the +)?
|
Thank you Nylex - that link certainly helped me. It also gave me the information I needed to make the enhancements I had planned.
Thank you Lazlow - I had not installed gtk+-devel (or gtk+). It's great to have people you can ask. |
All times are GMT -5. The time now is 06:04 PM. |