Sorry my bad, didn't realise that the packages are referred to as 2.0 for the purpose of compiling irrespective of version.
If you want to check the version try:
apt-cache show libgtk2.0-0 | grep Version
if the package is named something different on debian you could try:
apt-cache search libgtk
to track it down.
For the sleep function have you included unistd.h?
Are you able to include code from around each of your warnings? Sometimes errors propagate and are only noticed later. I think I sometimes get implicit declarations at odd places when I forget semicolons and stuff like that.
If you move to an autotools format (which is useful as the configure stage will help you in making your compilation easier cross-platform) an example configure.ac file (that uses gettext for translation support and gnome documentation) would be (the version you can control in the PKG_CHECK_MODULES line):
Code:
AC_PREREQ([2.65])
AC_INIT([yourfilename],[yourversion#],[your@email],[packagename],[url])
AC_CONFIG_SRCDIR([src/main.h])
AC_CONFIG_AUX_DIR([confsupp])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AM_GNU_GETTEXT([external])
GNOME_DOC_INIT
AC_PROG_CC([gcc cc])
AC_CONFIG_HEADERS([config.h])
PKG_CHECK_MODULES([YOURLIBMACRO], [gtk+-2.0 >= 2.14])
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile po/Makefile.in])
AC_OUTPUT()
A makefile.am in your root directory as:
Code:
SUBDIRS= doc po src
Applicationsdir=$(datadir)/applications
Applications_DATA=yourfile.desktop
pixmapdir=$(datadir)/pixmaps
pixmap_DATA=pixmaps/icon.png
EXTRA_DIST=confsupp/gnome-doc-utils.make \
ABOUT-NLS confsupp/config.rpath m4/ChangeLog \
AUTHORS ChangeLog COPYING COPYING-DOCS INSTALL NEWS README TODO \
$(pixmap_DATA) $(Applications_DATA) \
configure.ac
DISTCHECK_CONFIGURE_FLAGS= --disable-scrollkeeper
ACLOCAL_AMFLAGS = -I m4
and one in your source directory as:
Code:
AM_CFLAGS=$(YOURLIBMACRO_CFLAGS)
AM_CPPFLAGS= -DLOCALEDIR=\"$(localedir)\" -DPACKAGE=\"$(PACKAGE)\"
bin_PROGRAMS=yourfilename
yourfilename_SOURCES= \
main.c \
main.h \
otherstuff.c \
otherstuff.h
Harmonic_LDADD=$(YOURLIBMACRO_LIBS)