So I decided to take my first steps into programming with C + gtk.
So far I have done
- I loaded eclipse and ensured I had the cdt package
- Created a new C/C++ project called "play"
- Added a new source file called "Playfullsrc.c"
- Added the following to paths and symbols (output of the command: pkg-config --cflags gtk+-2.0)
Code:
/usr/include/gtk-2.0
/usr/lib/gtk-2.0/include
/usr/include/atk-1.0
/usr/include/cairo
/usr/include/pango-1.0
/usr/include/pixman-1
/usr/include/freetype2
/usr/include/directfb
/usr/include/libpng12
/usr/include/glib-2.0
/usr/lib/glib-2.0/include
- added "/usr/lib/libgtk-x11-2.0.so" to GCC C Linker Libaries (I have cheacked and this file exists)
When I build the project I get the error message "cannot find -l/usr/lib/libgtk-x11-2.0.so play line 0 C/C++ Problem"
I have been following this tutorial:
http://zetcode.com/articles/eclipsecdevelopment/
Have I missed something? Any help getting this working will be appreciated.