Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Binary compiled by solarisstudio12.3 CC compiler with stlport4 run solarisstudio12.4 stlport4 lib

3131632Dec 29 2015 — edited Jan 4 2016

When I compile a sample code on solarisstudio12.3 environment,then  run this binary on solarisstudio12.4 environment,it generate error.

case:

1.compiling  environment:

        compiler       version  :                         CC solarisstudio12.3

        OS:                                                      Oracle Solaris 10 9/10 s10x_u9wos_14a X86

        stlport4 library version:                        solarisstudio12.3

2. runtime environment:

         stlport4 library version :                      solarisstudio12.4

        OS:                                                     Oracle Solaris 10 9/10 s10x_u9wos_14a X86

3.  test code:

              #include <vector>

              using namespace std;

              int main()

             {

              vector<bool> v;

              bool b = false;

              v.push_back(b);

              return 0;

             }

  

run error:

ld.so.1: test: fatal: relocation error: file test: symbol __1cDstdGvector4Cbn0AJallocator4Cb___N_M_insert_aux6Mn0AJ_Bit_iter4n0AO_Bit_reference_Cpn0D___b_v_: referenced symbol not found

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2016
Added on Dec 29 2015
1 comment
988 views