small logical problem , running the make fiel .... plz see it
am 23.02.2007 11:08:29 von Yogeshif i run my make file i am getting all the lines error .... can any
one tell abt this
my make file consist of the detais
[root@gemini unix]# cat Makefile_adm
PRJ=adm.cgi
_INSTALLDIR=../bin
INSTALLUSER=root
INSTALLGROUP=wheel
LIBDIR=../lib
SRCDIR=../src
COMMONDIR=$(SRCDIR)/common
# QLDIRLIB=/usr/local/lib/mysql
QLDIRLIB=/usr/lib/mysql
# MYSQLDIRINCLUDE=/usr/local/include/mysql
MYSQLDIRINCLUDE=/usr/include/mysql
# MYSQLDIRLIB=/usr/local/lib/mysql
MYSQLDIRLIB=/usr/lib/mysql
#MYSQLVER=4
MYSQLVER=5
_CFLAGS=-O0 -g -pthread -DCASINO_TWIST -DTARGET_UNIX -DMYSQL$
(MYSQLVER)
#INSTALLDIR=$(_INSTALLDIR)/adm/cgi/
INSTALLDIR=$(_INSTALLDIR)/cgi/
PRJDIR=$(SRCDIR)/adm
CFLAGS=$(_CFLAGS) -DNOTHREAD -DCASINO_TWIST
INCLUDES=-I.. -I$(SRCDIR) -I$(LIBDIR) -I$(MYSQLDIRINCLUDE)
#LFLAGS=-L$(MYSQLDIRLIB) -L/usr/local/lib -lmysqlclient
LFLAGS=-L$(MYSQLDIRLIB) -L/usr/lib/mysql/ -lmysqlclient
OBJS_LIB= \
$(LIBDIR)/m_string.o \
$(LIBDIR)/m_except.o \
$(LIBDIR)/http/m_http.o \
OBJS_PRJ= \
$(PRJDIR)/mCommon.o \
$(PRJDIR)/mCgiMain.o \
$(PRJDIR)/mSSIService.o \
$(PRJDIR)/mMain.o
OBJS= \
$(OBJS_LIB) \
$(OBJS_PRJ)
.cpp.o:
g++ -c $(CFLAGS) $(INCLUDES) -o $@ $<
all: index
index: $(OBJS)
g++ -o $(PRJ) $(CFLAGS) $(LFLAGS) $(OBJS)
install: all
mkdir -p $(INSTALLDIR)
strip $(PRJ)
cp $(PRJ) $(INSTALLDIR)
chmod 755 $(INSTALLDIR)/$(PRJ)
chown $(INSTALLUSER):$(INSTALLGROUP) $(INSTALLDIR)/$(PRJ)
clean:
rm -f *.o $(OBJS) *~ core
if i compile i am getting the output as
>make -f Makefile_adm
.../lib/map/m_map.o(.m_ssi::TMap
&, TStr const &)+0xdf):/home/casino/unix/../lib/map/m_map.h: undefined
reference to `__builtin_delete'
.../lib/map/m_map.o(.m_ssi::TMap
&, TStr const &)+0xf5):/home/casino/unix/../lib/map/m_map.h: undefined
reference to `__sjthrow'
.../lib/map/m_map.o(.m_ssi::TMap
&, TStr const &)+0xff):/home/casino/unix/../lib/map/m_map.h: undefined
reference to `__terminate'
.../lib/map/m_map.o(.m_ssi::TList
>::gnu.linkonce.t.Add(m_ssi::TMapItem
unix/../lib/map/m_map.h: undefined reference to `__get_eh_context'
.../lib/map/m_map.o(.m_ssi::TList
>::gnu.linkonce.t.Add(m_ssi::TMapItem
unix/../lib/map/m_map.h: undefined reference to `__builtin_new'
.../lib/map/m_map.o(.m_ssi::TList
>::gnu.linkonce.t.Add(m_ssi::TMapItem
unix/../lib/map/m_map.h: undefined reference to `__builtin_delete'
.../lib/sql/mSQL.o(.text+0x1178): In function
`m_classes::TQuery::selectSql(TStr
const &, TStr const &, TStr const &, TStr const &, TStr const &)':
/home/casino/unix/../lib/sql/mSQL.cpp:105: undefined reference to
`__get_eh_context'