[gtkmm] Compiling gtkmm on Win32 with Dev-C++



Greetings,

I am trying to compile a gtkmm 2 application I originally coded using Linux tools on WinXP.  I installed Dev-C++ 4, the GTK+ runtime and development environments from dropline.net, and the gtkmm 2.2.3 win32 port by Cedric Gustin.  I first just tried to compile one of the gtkmm examples, stock.cc.

pkg-config seems fine:

>pkg-config --cflags --libs gtkmm-2.0

-IF:/Dev-Cpp/include/gtkmm-2.0
-IF:/Dev-Cpp/lib/gtkmm-2.0/include
-IF:/Dev-Cpp/include/gtk-2.0
-IF:/Dev-Cpp/lib/sigc++-1.2/include
-IF:/Dev-Cpp/include/sigc++-1.2
-IF:/Dev-Cpp/include/glib-2.0
-IF:/Dev-Cpp/lib/glib-2.0/include
-IF:/Dev-Cpp/lib/gtk-2.0/include
-IF:/Dev-Cpp/include/pango-1.0
-IF:/Dev-Cpp/include/atk-1.0 
-LF:/Dev-Cpp/lib -lgtkmm-2.0 -lgdkmm-2.0 -latkmm-1.0 -lgtk-win32-2.0 -lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv

Dev-C++ did the following:

Building resource file...
Compiling files :
F:\Dev-Cpp\Bin\g++ "f:\dev-cpp\examples\stock\stock.cc"  -c -s
-IF:/Dev-Cpp/lib/sigc++-1.2/include
-IF:/Dev-Cpp/include/sigc++-1.2
-IF:/Dev-Cpp/include/gtkmm-2.0
-IF:/Dev-Cpp/lib/gtkmm-2.0/include
-IF:/Dev-Cpp/include/gtk-2.0
-IF:/Dev-Cpp/include/glib-2.0
-IF:/Dev-Cpp/lib/glib-2.0/include
-IF:/Dev-Cpp/lib/gtk-2.0/include
-IF:/Dev-Cpp/include/pango-1.0
-IF:/Dev-Cpp/include/atk-1.0
-IF:\Dev-Cpp\Include\ -IF:\Dev-Cpp\Include\G__~1
-IF:\Dev-Cpp\Include\ -LF:\Dev-Cpp\Lib\ -BF:\Dev-Cpp\Bin\ 
Linking files :
F:\Dev-Cpp\Bin\g++ "f:\dev-cpp\examples\stock\stock.o"  -o f:\dev-cpp\examples\stock\Stock-ex.exe
-LF:/Dev-Cpp/lib -lgtkmm-2.0 -lgdkmm-2.0 -latkmm-1.0 -lgtk-win32-2.0 -lpangomm-1.0
-lglibmm-2.0 -lsigc-1.2 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv
F:\Dev-Cpp\Examples\stock\rsrc.o -s -IF:/Dev-Cpp/lib/sigc++-1.2/include -IF:/Dev-Cpp/include/sigc++-1.2 -IF:/Dev-Cpp/include/gtkmm-2.0 -IF:/Dev-Cpp/lib/gtkmm-2.0/include -IF:/Dev-Cpp/include/gtk-2.0 -IF:/Dev-Cpp/include/glib-2.0 -IF:/Dev-Cpp/lib/glib-2.0/include -IF:/Dev-Cpp/lib/gtk-2.0/include -IF:/Dev-Cpp/include/pango-1.0 -IF:/Dev-Cpp/include/atk-1.0 -IF:\Dev-Cpp\Include\ -IF:\Dev-Cpp\Include\G__~1 -IF:\Dev-Cpp\Include\ -LF:\Dev-Cpp\Lib\ -BF:\Dev-Cpp\Bin\

An object file was created, but then the linker returned the error message:
F:\Dev-Cpp\Bin\ld.exe: cannot open -lgtkmm-2.0: No such file or directory

Can anyone point me in the right direction as to what I'm doing wrong here?

Thanks in advance,
Indraneel



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