The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-01-2009
unisuraj unisuraj is offline
Registered User
  
 

Join Date: Mar 2008
Location: Delhi
Posts: 10
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