Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131219 - gtkmm-2.8.1 library is missing three important constants
Summary: gtkmm-2.8.1 library is missing three important constants
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: GNOME C++ Bindings Maintainers (OBSOLETE)
Depends on:
Reported: 2006-04-25 06:24 UTC by Alex Buell
Modified: 2006-04-25 08:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Alex Buell 2006-04-25 06:24:18 UTC
Much like glib and gtk, gtkmm also has three constants; gtkmm_major_version, gtkmm_minor_version and gtkmm_micro_version. But when I try using these constants in my code, I get linkage errors.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-25 06:52:11 UTC
gtk-2.8.1 is not in portage... what ebuild is this exactly about?

Comment 2 Alex Buell 2006-04-25 06:59:59 UTC
Just amended gtk-2.8.1 to gtkmm-2.8.1, sorry about that!!
Comment 3 Alex Buell 2006-04-25 07:01:30 UTC
Reopened with amended summary line.
Comment 4 John N. Laliberte (RETIRED) gentoo-dev 2006-04-25 07:38:36 UTC
can you attach example source + how you are attemping to compile/link it?
Comment 5 Alex Buell 2006-04-25 08:04:38 UTC
#include <gtkmm.h>
#include <iostream>

int main()
        std::cout << "Gtkmm " << gtkmm_major_version << "." << gtkmm_minor_version << "." << gtkmm_micro_version << "\n";
        return 0;

g++ `pkg-config --libs --cflags gtkmm-2.4` gtkmm_test.cpp -o gtkmm_test
/tmp/ccZu58l0.o: In function `main':
gtkmm_test.cpp:(.text+0x131): undefined reference to `gtkmm_major_version'
gtkmm_test.cpp:(.text+0x154): undefined reference to `gtkmm_minor_version'
gtkmm_test.cpp:(.text+0x177): undefined reference to `gtkmm_micro_version'
collect2: ld returned 1 exit status
Comment 6 John N. Laliberte (RETIRED) gentoo-dev 2006-04-25 08:13:07 UTC
make those all capitals like:


and you won't have those errors.
Comment 7 Alex Buell 2006-04-25 08:24:55 UTC
How strange - they're certainly lower case in /usr/include/gtkmm-2.4/gtkmm!
But thank you, that's solved my problem.