After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 483726 - Win32 buld failed
Win32 buld failed
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: build
2.10.x
Other Windows
: Normal critical
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2007-10-05 13:19 UTC by Sergey
Modified: 2007-12-29 10:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sergey 2007-10-05 13:19:35 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?
Comment 1 Murray Cumming 2007-11-05 13:35:27 UTC
What is the result of 
pkg-config gtkmm-2.4 --cflags --libs
?
Comment 2 Murray Cumming 2007-11-29 08:37:49 UTC
Please respond. We would like to help you.
Comment 3 Cedric Gustin 2007-11-30 10:57:15 UTC
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.
Comment 4 Sergey 2007-12-29 09:42:41 UTC
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...