Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7957 Discussions

icc and link to std lib std::_Rb_tree_decrement

deeshie09
Beginner
480 Views
Hi,
I have to use Intel c++ (32bit, cc32) compiler on Linux for my program that was compiled with gcc. I have run it for years. With intel cc, now I have a problem in compiling. It is something to do with std library.

MyProgram.so: undefined to 'std::_Rb_tree_decrement(std::_Rb_tree_note_base*)
.....
std::_List_node_base::transfer(std::_List_node_base*)
.....

I might miss some in the makefile and am looking for your help.

Thank you a lot.

Dee
0 Kudos
1 Reply
TimP
Honored Contributor III
480 Views
You didn't show us the makefile. In the title you say icc (Intel C compiler), and in the text you say Intel C++ (icpc) . This kind of error would happen if you didn't use icpc or g++ to run the link. No other tools would know about libstdc++. For example, if you invoked ld directly, or by specifying a C compiler, you would have to specify the libraries required. Generally, it is possibly to link mixtures of C and C++ by using the C++ compiler to drive the link, but not by the C compiler alone.
0 Kudos
Reply