Re: Undefined references



Dear Pedro,

> I am trying to compile the example from the gtkmm tutorial without success.
> I am using Windows XP with eclipse and MinGW.
> I installed gtkmm using the latest installer available at
> http://live.gnome.org/gtkmm/MSWindows (2.16.0-2).
> I added all the includes and libs specified by pkg-config to the
> project configuration, but I still get undefined references at linking
> time.

> g++ -LC:/libs/gtkmm/lib -lgtkmm-2.4 -lgiomm-2.4 -lgdkmm-2.4
> -latkmm-1.6 -lgtk-win32-2.0 -lpangomm-1.4 -lcairomm-1.0 -lglibmm-2.4
> -lsigc-2.0 -lgdk-win32-2.0 -latk-1.0 -lgio-2.0 -lgdk_pixbuf-2.0
> -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0 -lcairo
> -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -ogtk_test.exe
> src\gtk_test.o

Your pkg-config seems to think that you installed directly to C:\ creating
a subdirectory c:\libs there. This is probably not what you did. The
question is: Does the directory C:/libs/gtkmm/lib (mentioned in your
command line) really exist?

Good luck,
Mark


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