Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » I tried to compile GTK source
I tried to compile GTK source [message #143294] Thu, 14 April 2005 13:33
Eclipse UserFriend
Originally posted by: high1234.nate.com

I did following line

=> `pkg-config --cflags --libs gtk+-2.0` `pkg-config gtkmm-2.4 --libs
=> --cflags`

to Projects->Properties->Tool Settings->Miscellanous->other flags
plus adding the (MY) include paths
/usr/include/gtkmm2-4
/usr/include/gtk
to Projects->Properties->Tool Settings->Directories.

and I can compile gtk source

######## console message

**** Full rebuild of configuration Debug for project gtkhello ****

make -k clean all
rm -rf base.o base.d gtkhello
Building file: ../base.c
gcc -I/opt/gtk-2.4.14/include/gtk-2.0 -O0 -g3 -Wall -DXTHREADS
-D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -Wl,--export-dynamic -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -obase.o ../base.c
/usr/lib/gcc/i386-Haansoft-linux/3.4.1/../../../crt1.o(.text +0x18): In
function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [base.o] 오류 1
make: 오류로 인해 타겟
`all'를 다시 만들지
못했습니다 .
Build complete for project gtkhello
Previous Topic:Why New Project wizard checks if dirs overlap?!
Next Topic:very basic stuff
Goto Forum:
  


Current Time: Fri Nov 22 17:20:52 GMT 2024

Powered by FUDForum. Page generated in 0.02398 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top