|
Compilation error in C++ ::_Rb_tree_node_base& !!
Hi,
I am getting the following compilation error in compiling the code :
/**********************************/
Undefined first referenced
symbol in file
std::_Rb_tree_increment(std::_Rb_tree_node_base*)/var/tmp//ccZIgc70.o
std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)/var/tmp//ccZIgc70.o
std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)/var/tmp//ccZIgc70.o
std::_Rb_tree_decrement(std::_Rb_tree_node_base*)/var/tmp//ccZIgc70.o
ld: fatal: Symbol referencing errors. No output written to ipcl
collect2: ld returned 1 exit status
/***************************************/
i am using the map stl library with g++ on sun machine 64bit.
Makefile:
/********************************/
commonobjfiles = *.cpp
INCLUDES = -I . -I../../../COMMON_HEADER/sysrel -I../../../STACK_HEADER/hss -I../inc -I$(ORACLE_HOME)/precomp/public
obj: $(commonobjfiles)
g++ -g $(commonobjfiles) -o ipcl $(INCLUDES) -z muldefs -lpthread -lsocket -lnsl -lrt -Wno-deprecated -ldl -L../../..
/LIB -lvng_db_api -loamlog -llsclient -lAlarmManagerClient -L $(ORACLE_HOME)/lib32 -lclntsh -D_REENTRANT -DNO_IAM
clean:
rm -f *.o
rm ipcl
/*******************************/
Please help me out.
Regards,
Suraj
|