GNOME Bugzilla – Bug 483726
Win32 buld failed
Last modified: 2007-12-29 10:26:11 UTC
Steps to reproduce: Installed MinGW 5.1.3, MSYS. Compiling ... g++ `pkg-config gtkmm-2.4 --cflags --libs` t.c 2>&1|head ... simple program ... #include <gtkmm.h> int main (int argc, char* argv[]) { Gtk::Main toolkit (argc, argv); Gtk::Window window; toolkit.run (window); return 0; } Stack trace: causes ... g++ `pkg-config gtkmm-2.4 --cflags --libs` t.c 2>&1|head C:/DOCUME~1/Sergey/LOCALS~1/Temp/ccuGbaaa.o:t.c:(.text+0x18c): undefined reference to `Gtk::Main::Main(int&, char**&, bool)' C:/DOCUME~1/Sergey/LOCALS~1/Temp/ccuGbaaa.o:t.c:(.text+0x1a9): undefined reference to `Gtk::Window::Window(Gtk::WindowType)' C:/DOCUME~1/Sergey/LOCALS~1/Temp/ccuGbaaa.o:t.c:(.text+0x1be): undefined reference to `Gtk::Main::run(Gtk::Window&)' C:/DOCUME~1/Sergey/LOCALS~1/Temp/ccuGbaaa.o:t.c:(.text+0x1d3): undefined reference to `Gtk::Window::~Window()' C:/DOCUME~1/Sergey/LOCALS~1/Temp/ccuGbaaa.o:t.c:(.text+0x1e8): undefined reference to `Gtk::Main::~Main()' Other information: Any ideas?
What is the result of pkg-config gtkmm-2.4 --cflags --libs ?
Please respond. We would like to help you.
Could you also try g++ `pkg-config gtkmm-2.4 --cflags` t.c `pkg-config gtkmm-2.4 --libs` mingw-g++ is kinda picky with the position of linker flags.
Sorry for delay with access, have no access to GTKMM/Win32 computer. I've checked, this variant works: g++ `pkg-config gtkmm-2.4 --cflags` t.c `pkg-config gtkmm-2.4 --libs` Thank you for help...