Added my files to src/Makefile.am but



it didn't work:

## Process this file with automake to produce Makefile.in

INCLUDES = \
        -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
        -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
        @PACKAGE_CFLAGS@

bin_PROGRAMS = xarchiver

xarchiver_SOURCES = \
        main.c main.h \
        support.c support.h \
        interface.c interface.h \
        callbacks.c callbacks.h \
        zip.c zip.h

xarchiver_LDADD = @PACKAGE_LIBS@

The files are zip.c and zip.h but they are not even compiled:
gcc -g -O2 -o xarchiver main.o support.o interface.o callbacks.o -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
callbacks.o(.text+0x58d): In function `OpenZip':
/home/gt/Projects/Xarchiver/src/callbacks.c:240: undefined reference to `OpenZipArchive'
collect2: ld returned 1 exit status

OpenZip archive is a function included in zip.c.When I issue make in the gcc line above there is not zip.o but I included them in the src/Makefile.am

Could someone help please ?
--
Colossus

Cpsed, a Linux OpenGL 3D scene editor
http://cpsed.sourceforge.net/




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