Re: [gtkmm] compile error


* kaming <gaming hkem com> [2003-01-22 13:45:22]:
> i am using debian
> and use: apt-get install libgtkmm2.0-dev
> to install gtkmm.
> i try the example in the tutorial
> then i use:
> g++ -o simple `pkg-config gtkmm-2.0 --cflags --libs`
> to compile the program...
> but following error come out:
> /tmp/ccvblT4v.o(.text+0x1e): In function `main':
> : undefined reference to `Gtk::Main::Main(int, int &, char **&, bool)'
> collect2: ld returned 1 exit status

Most likely you are using g++ 2.95, while the latest version of
libgtkmm2.0 in Debian unstable is compiled against g++ 3.2.

An apt-get upgrade should upgrade your g++ version, perhaps you have
some packages kept back that you explicitly need to install with
apt-get. E.g. "apt-get install g++".

  - Morten.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]