Compiling first GTKMM program
- From: pgwillia <pgwillia student cs uwaterloo ca>
- To: gtkmm-list gnome org
- Subject: Compiling first GTKMM program
- Date: Wed, 21 Feb 2007 11:14:14 -0800 (PST)
Hi All,
I have copied the helloworld sample from
gtkmm-2.4/docs/tutorial/html/ch03s06.html to files helloworld.cpp, main.cpp,
and helloworld.h. I installed first gtk-dev-2.10.7-win32-1 from
http://gladewin32.sourceforge.net/modules/news/ and then
gtkmm-win32-devel-2.10.6-1 from
http://ftp.gnome.org/pub/GNOME/binaries/win32/gtkmm/2.10/
this is the c++ compiler I use in my cygwin environment
$ g++ -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure
--verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls
--without-included-gettext --enable-version-specific-runtime-libs
--without-x --enable-libgcj --disable-java-awt --with-system-zlib
--enable-interpreter --disable-libgcj-debug --enable-threads=posix
--enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions
--enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
pkg-config is configured
$ pkg-config --version
0.20
and links
$ pkg-config --modversion --cflags --libs gtkmm-2.4
2.10.6
-mms-bitfields -IC:/GTK/include/gtkmm-2.4 -IC:/GTK/lib/gtkmm-2.4/include
-IC:/GTK/include/glibmm-2.4 -IC:/GTK/lib/glibmm-2.4/include
-IC:/GTK/include/gdkmm-2.4 -IC:/GTK/lib/gdkmm-2.4/include
-IC:/GTK/include/pangomm-1.4 -IC:/GTK/include/atkmm-1.6
-IC:/GTK/include/gtk-2.0 -IC:/GTK/include/sigc++-2.0
-IC:/GTK/lib/sigc++-2.0/include -IC:/GTK/include/glib-2.0
-IC:/GTK/lib/glib-2.0/include -IC:/GTK/lib/gtk-2.0/include
-IC:/GTK/include/cairomm-1.0 -IC:/GTK/include/pango-1.0
-IC:/GTK/include/cairo -IC:/GTK/include/freetype2 -IC:/GTK/include/atk-1.0
-user32 -Wl,-luuid -LC:/GTK/lib -lgtkmm-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 -limm32 -lshell32 -lole32 -latk-1.0 -lgdk_pixbuf-2.0
-lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lcairo -lpangoft2-1.0
-lfontconfig -lfreetype -lz -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0
-lglib-2.0 -lintl -liconv
I attempt to link and compile the helloworld sample
$ g++ `pkg-config gtkmm-2.4 --cflags --libs` main.cpp -o main helloworld.cpp
: No such file or directory
I have no clue what is causing this error (No such file or directory), have
never seen this error before, and don't even know where to look to correct
this. I can still compile my non gtkmm programs without error.
Any help would be greatly appreciated!
Tricia
--
View this message in context: http://www.nabble.com/Compiling-first-GTKMM-program-tf3268732.html#a9087191
Sent from the Gtkmm mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]