Hello: my configure.in file: AC_INIT(main, 0.1, zqiang320@xxxxxxxxx) AM_INIT_AUTOMAKE(foreign) AC_PROG_CC AC_PROG_CXX AM_PROG_LIBTOOL AC_OUTPUT(Makefile libsbml/src/Makefile) my Makefile.am file: bin_PROGRAMS = test SUBDIRS = libsbml/src . test_SOURCES = test.c test_LDADD = libsbml/src/libsbml.la -lsbml -lstdc++ -lm AM_CPPFLAGS = -Ilibsbml/include my libsbml/src/Makefile.am AUTOMAKE_OPTS = gnu lib_LTLIBRARIES = libsbml.la libsbml_la_SOURCES = common/libsbml-version.cpp math/ASTNode.cpp math/FormulaTokenizer.c util/List.cpp AM_CPPFLAGS = -I../include -lsbml -lstdc++ -lm I execute make ,then get error: $ make Making all in libsbml/src make[1]: Entering directory `/home/internet/mydoc/test_pj/libsbml/src' /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"main\ 0.1\" -DPACKAGE_BUGREPORT=\"zqiang320@xxxxxxxxx\" -DPACKAGE=\"main\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I../include -lsbml -lstdc++ -lm -g -O2 -MT libsbml-version.lo -MD -MP -MF .deps/libsbml-version.Tpo -c -o libsbml-version.lo `test -f 'common/libsbml-version.cpp' || echo './'`common/libsbml-version.cpp mkdir .libs g++ -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"main 0.1\"" -DPACKAGE_BUGREPORT=\"zqiang320@xxxxxxxxx\" -DPACKAGE=\"main\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I../include -lsbml -lstdc++ -lm -g -O2 -MT libsbml-version.lo -MD -MP -MF .deps/libsbml-version.Tpo -c common/libsbml-version.cpp -fPIC -DPIC -o .libs/libsbml-version.o g++ -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"main 0.1\"" -DPACKAGE_BUGREPORT=\"zqiang320@xxxxxxxxx\" -DPACKAGE=\"main\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I../include -lsbml -lstdc++ -lm -g -O2 -MT libsbml-version.lo -MD -MP -MF .deps/libsbml-version.Tpo -c common/libsbml-version.cpp -o libsbml-version.o >/dev/null 2>&1 mv -f .deps/libsbml-version.Tpo .deps/libsbml-version.Plo /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"main\ 0.1\" -DPACKAGE_BUGREPORT=\"zqiang320@xxxxxxxxx\" -DPACKAGE=\"main\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I../include -lsbml -lstdc++ -lm -g -O2 -MT ASTNode.lo -MD -MP -MF .deps/ASTNode.Tpo -c -o ASTNode.lo `test -f 'math/ASTNode.cpp' || echo './'`math/ASTNode.cpp g++ -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"main 0.1\"" -DPACKAGE_BUGREPORT=\"zqiang320@xxxxxxxxx\" -DPACKAGE=\"main\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I../include -lsbml -lstdc++ -lm -g -O2 -MT ASTNode.lo -MD -MP -MF .deps/ASTNode.Tpo -c math/ASTNode.cpp -fPIC -DPIC -o .libs/ASTNode.o g++ -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"main 0.1\"" -DPACKAGE_BUGREPORT=\"zqiang320@xxxxxxxxx\" -DPACKAGE=\"main\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I../include -lsbml -lstdc++ -lm -g -O2 -MT ASTNode.lo -MD -MP -MF .deps/ASTNode.Tpo -c math/ASTNode.cpp -o ASTNode.o >/dev/null 2>&1 mv -f .deps/ASTNode.Tpo .deps/ASTNode.Plo /bin/sh ../../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"main\ 0.1\" -DPACKAGE_BUGREPORT=\"zqiang320@xxxxxxxxx\" -DPACKAGE=\"main\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I../include -lsbml -lstdc++ -lm -g -O2 -MT FormulaTokenizer.lo -MD -MP -MF .deps/FormulaTokenizer.Tpo -c -o FormulaTokenizer.lo `test -f 'math/FormulaTokenizer.c' || echo './'`math/FormulaTokenizer.c gcc -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"main 0.1\"" -DPACKAGE_BUGREPORT=\"zqiang320@xxxxxxxxx\" -DPACKAGE=\"main\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I../include -lsbml -lstdc++ -lm -g -O2 -MT FormulaTokenizer.lo -MD -MP -MF .deps/FormulaTokenizer.Tpo -c math/FormulaTokenizer.c -fPIC -DPIC -o .libs/FormulaTokenizer.o gcc -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"main 0.1\"" -DPACKAGE_BUGREPORT=\"zqiang320@xxxxxxxxx\" -DPACKAGE=\"main\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I../include -lsbml -lstdc++ -lm -g -O2 -MT FormulaTokenizer.lo -MD -MP -MF .deps/FormulaTokenizer.Tpo -c math/FormulaTokenizer.c -o FormulaTokenizer.o >/dev/null 2>&1 mv -f .deps/FormulaTokenizer.Tpo .deps/FormulaTokenizer.Plo /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"main\ 0.1\" -DPACKAGE_BUGREPORT=\"zqiang320@xxxxxxxxx\" -DPACKAGE=\"main\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I../include -lsbml -lstdc++ -lm -g -O2 -MT List.lo -MD -MP -MF .deps/List.Tpo -c -o List.lo `test -f 'util/List.cpp' || echo './'`util/List.cpp g++ -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"main 0.1\"" -DPACKAGE_BUGREPORT=\"zqiang320@xxxxxxxxx\" -DPACKAGE=\"main\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I../include -lsbml -lstdc++ -lm -g -O2 -MT List.lo -MD -MP -MF .deps/List.Tpo -c util/List.cpp -fPIC -DPIC -o .libs/List.o g++ -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"main 0.1\"" -DPACKAGE_BUGREPORT=\"zqiang320@xxxxxxxxx\" -DPACKAGE=\"main\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I../include -lsbml -lstdc++ -lm -g -O2 -MT List.lo -MD -MP -MF .deps/List.Tpo -c util/List.cpp -o List.o >/dev/null 2>&1 mv -f .deps/List.Tpo .deps/List.Plo /bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -o libsbml.la -rpath /usr/local/lib libsbml-version.lo ASTNode.lo FormulaTokenizer.lo List.lo g++ -shared -nostdlib /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../crti.o /usr/lib/gcc/i386-redhat-linux/4.3.0/crtbeginS.o .libs/libsbml-version.o .libs/ASTNode.o .libs/FormulaTokenizer.o .libs/List.o -L/usr/lib/gcc/i386-redhat-linux/4.3.0 -L/usr/lib/gcc/i386-redhat-linux/4.3.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i386-redhat-linux/4.3.0/crtendS.o /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../crtn.o -Wl,-soname -Wl,libsbml.so.0 -o .libs/libsbml.so.0.0.0 (cd .libs && rm -f libsbml.so.0 && ln -s libsbml.so.0.0.0 libsbml.so.0) (cd .libs && rm -f libsbml.so && ln -s libsbml.so.0.0.0 libsbml.so) ar cru .libs/libsbml.a libsbml-version.o ASTNode.o FormulaTokenizer.o List.o ranlib .libs/libsbml.a creating libsbml.la (cd .libs && rm -f libsbml.la && ln -s ../libsbml.la libsbml.la) make[1]: Leaving directory `/home/internet/mydoc/test_pj/libsbml/src' Making all in . make[1]: Entering directory `/home/internet/mydoc/test_pj' gcc -DPACKAGE_NAME=\"main\" -DPACKAGE_TARNAME=\"main\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"main\ 0.1\" -DPACKAGE_BUGREPORT=\"zqiang320@xxxxxxxxx\" -DPACKAGE=\"main\" -DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -Ilibsbml/include -g -O2 -MT test.o -MD -MP -MF .deps/test.Tpo -c -o test.o test.c mv -f .deps/test.Tpo .deps/test.Po /bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -o test test.o libsbml/src/libsbml.la -lsbml -lstdc++ -lm mkdir .libs gcc -g -O2 -o .libs/test test.o libsbml/src/.libs/libsbml.so -lstdc++ -lm -Wl,--rpath -Wl,/usr/local/lib libsbml/src/.libs/libsbml.so: undefined reference to `safe_strdup' libsbml/src/.libs/libsbml.so: undefined reference to `util_bsearchStringsI' libsbml/src/.libs/libsbml.so: undefined reference to `safe_malloc' libsbml/src/.libs/libsbml.so: undefined reference to `util_PosInf' libsbml/src/.libs/libsbml.so: undefined reference to `util_isInf' libsbml/src/.libs/libsbml.so: undefined reference to `util_NaN' libsbml/src/.libs/libsbml.so: undefined reference to `safe_calloc' libsbml/src/.libs/libsbml.so: undefined reference to `strcmp_insensitive' libsbml/src/.libs/libsbml.so: undefined reference to `c_locale_strtod' collect2: ld returned 1 exit status make[1]: *** [test] Error 1 make[1]: Leaving directory `/home/internet/mydoc/test_pj' make: *** [all-recursive] Error 1 Why system can not find these function ,they are system file <stdlib.h> <new> <cmath> which has been included in my app.c. What should I do? Eager to receive your reply! 2008-09-25 zqiang320