Fwd: Problems using home made library

Simon Ejsing simon at esoft.dk
Thu Sep 12 16:28:32 BST 2002


	I can't figure out how to include a home made library into the makefile of my
project. I've added -lesoft to the linker flags and the output seems right,
however it failts at an undeclared referense to a function (in this case
"stitch_init").

	I've checked that the library does in fact work with a small example
 program, which compiles fine with just -lesoft ...

	So am I missing something here? Is it the LD_LIBRARY_PATH that's not setup
correct (I assume it's enough to have the path in /etc/ld.so.conf)?

output:
/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor
-Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith
-Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-Wcast-align -Wconversion -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new -o
epan -L/usr/X11R6/lib -L/usr/lib/qt-3.0.5/lib -L/opt/kde/lib -R /opt/kde/lib
-R /usr/lib/qt-3.0.5/lib -R /usr/X11R6/lib selectlabel.o himel.o upload.o
conn.o http.o epanlist.o modify.o csimpletable.o database.o import.o epan.o
main.o epansag.o epanmain.o csimpletable.moc.o epan.moc.o selectlabel.moc.o
epanlist.moc.o epan_meta_unload.o -lesoft -lm -lkdeui -lkdecore -lqt-mt -lpng
-lz -lm -lXext -lX11 -lresolv -lSM -lICE -lpthread -lresolv
gmake[2]: Leaving directory `/root/develop/epan/epan'
epan.o: In function `Epan::slotFullPreview(void)':
/root/develop/epan/epan/epan.cpp:178: undefined reference to
 `stitch_init(char *)'
collect2: ld returned 1 exit status

--
/Sharky

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list