here is my make file
# Makefile for tpg5webapp
CC=g++
CFLAGS = -static -m32 -fPIC -Wall
BOOSTINC = -I/export/home/mlacrosse/boost/include/boost-1_38
STATIC_LIB_OPT = -Wl,"-Bstatic"
LINK_OPTS = -v -fident -Wl,"-Bdirect" -Wl,"-m" -z defs -z rescan
BOOST_LIBPATH = -L/export/home/mlacrosse/boost/lib/
-lboost_filesystem-gcc34-mt -lboost_system-gcc34-mt
BOOST_LIBS = $(STATIC_LIB_OPT) $(BOOST_LIBPATH)
TNLIBS = -L/export/home/jshelly/work/tserve4/lib
TNINCLUDE = -I/export/home/jshelly/work/tserve4/pub/include
BASE_LIBS= -L/usr/local/lib
LOCALLIB = -L/export/home/mlacrosse/work/gccroot/usr/local/lib
INCLUDES = -I. -I./h $(BOOSTINC) $(TNINCLUDE)
LIBS = $(BOOST_LIBS) $(TNLIBS) $(BASE_LIBS) $(LOCALLIBS)
DEFINES = -D__SOLARIS__ -DBSD_COMP -DSTRICT_PROTO -DSSBIGENDIAN
all: tpg5webapp
tpg5webapp: tpg5webapp.cpp ConfigFile.cpp
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) $(LIBS) \
-o tpg5webapp ConfigFile.cpp tpg5webapp.cpp
run: tpg5webapp
./tpg5webapp | tee tpg5webapp.out
tidy:
@ rm -f *.o
clean: tidy
@ rm -f tpg5webapp tpg5webapp.out core*
here are the error message that I'm getting
Undefined first referenced
symbol in file
boost::filesystem::detail::dir_itr_first(void*&, void*&,
std::basic_string &, boost::filesystem::file_status&, boost::filesys
tem::file_status&)/var/tmp//ccOQOOR8.o
boost::system::get_generic_category() /var/tmp//ccOQOOR8.o
boost::filesystem::detail::dir_itr_increment(void*&, void*&,
std::basic_string &, boost::filesystem::file_status&,
boost::filesystem::file_status&)/var/tmp//ccOQOOR8.o
boost::system::get_system_category() /var/tmp//ccOQOOR8.o
boost::filesystem::detail::not_found_error() /var/tmp//ccOQOOR8.o
boost::filesystem::detail::symlink_status_api(std::basic_string collect2: ld returned 1 exit status
make: *** [tpg5webapp] Error 1