Discussion:
How to compile GTK stuff
(too old to reply)
Ryan
2010-07-05 21:50:36 UTC
Permalink
I get the following error trying to compile the hello.cc (from the 1st
example) on both my computer (linux mint) and
linux.student.cs.uwaterloo.ca. It works on
cpu-linux.student.cs.uwaterloo.ca, but I would like to be able to use it
on my computer as well. If anyone knows how to make this doable please
help!

CC -c hello.cc
"hello.cc", line 2: Error: Could not open include file <gtkmm.h>.
"hello.cc", line 6: Error: Gtk is not defined.
"hello.cc", line 6: Error: Main is not defined.
"hello.cc", line 6: Error: Badly formed expression.
"hello.cc", line 9: Error: Gtk is not defined.
"hello.cc", line 9: Error: Window is not defined.
"hello.cc", line 9: Error: window is not defined.
"hello.cc", line 9: Error: Badly formed expression.
"hello.cc", line 12: Error: Gtk is not defined.
"hello.cc", line 12: Error: window is not defined.
10 Error(s) detected.
*** Error code 10
make: Fatal error: Command failed for target `hello.o'
Ryan
2010-07-05 22:00:23 UTC
Permalink
Never mind, I got it I needed to install a package
Post by Ryan
I get the following error trying to compile the hello.cc (from the 1st
example) on both my computer (linux mint) and
linux.student.cs.uwaterloo.ca. It works on
cpu-linux.student.cs.uwaterloo.ca, but I would like to be able to use it
on my computer as well. If anyone knows how to make this doable please
help!
CC -c hello.cc
"hello.cc", line 2: Error: Could not open include file <gtkmm.h>.
"hello.cc", line 6: Error: Gtk is not defined.
"hello.cc", line 6: Error: Main is not defined.
"hello.cc", line 6: Error: Badly formed expression.
"hello.cc", line 9: Error: Gtk is not defined.
"hello.cc", line 9: Error: Window is not defined.
"hello.cc", line 9: Error: window is not defined.
"hello.cc", line 9: Error: Badly formed expression.
"hello.cc", line 12: Error: Gtk is not defined.
"hello.cc", line 12: Error: window is not defined.
10 Error(s) detected.
*** Error code 10
make: Fatal error: Command failed for target `hello.o'
Dawn Keenan [CSCF]
2010-07-06 18:04:20 UTC
Permalink
Post by Ryan
Never mind, I got it I needed to install a package
Post by Ryan
I get the following error trying to compile the hello.cc (from the 1st
example) on both my computer (linux mint) and
linux.student.cs.uwaterloo.ca. It works on
cpu-linux.student.cs.uwaterloo.ca, but I would like to be able to use it
on my computer as well. If anyone knows how to make this doable please
help!
CC -c hello.cc
"hello.cc", line 2: Error: Could not open include file <gtkmm.h>.
The "locate" command (standard in most modern Unixes, including Linux)
is useful for locating files. In this case, "locate gtkmm.h" would have
shown the directory on linux.student.cs where that include file lives.

If you're working on your own system, http://packages.ubuntu.com/ is
handy for finding packages you need to install based on files you're
missing. Scroll down to "Search the contents of packages" and select
your distribution.

--Dawn, CSCF

Loading...