Topic
3 replies Latest Post - ‏2011-10-18T17:41:08Z by alexcp
alexcp
alexcp
4 Posts
ACCEPTED ANSWER

Pinned topic xlC_r iostream problem

‏2011-10-18T15:46:05Z |
When i try to compile a c code with vacpp codes it returns some problems to me telling the iostream.h is wrong.
I'm using the xlC_r... i'm missing something?

Thanks, Alex.
Updated on 2011-10-18T17:41:08Z at 2011-10-18T17:41:08Z by alexcp
  • alexcp
    alexcp
    4 Posts
    ACCEPTED ANSWER

    Re: xlC_r iostream problem

    ‏2011-10-18T16:03:21Z  in response to alexcp
    it returns
    
    
    "/usr/vacpp/include/iostream.h", line 29.1: 1506-224 (I) Incorrect pragma ignored. 
    "/usr/vacpp/include/iostream.h", line 73.1: 1506-166 (S) Definition of function 
    
    class requires parentheses. 
    "/usr/vacpp/include/iostream.h", line 73.7: 1506-276 (S) Syntax error: possible missing 
    '{'? 
    "/usr/vacpp/include/iostream.h", line 82.27: 1506-045 (S) Undeclared identifier goodbit. 
    "/usr/vacpp/include/iostream.h", line 82.38: 1506-045 (S) Undeclared identifier eofbit. 
    "/usr/vacpp/include/iostream.h", line 82.48: 1506-045 (S) Undeclared identifier failbit. 
    "/usr/vacpp/include/iostream.h", line 82.59: 1506-045 (S) Undeclared identifier badbit. 
    "/usr/vacpp/include/iostream.h", line 83.33: 1506-045 (S) Undeclared identifier hardfail. 
    "/usr/vacpp/include/iostream.h", line 83.46: 1506-277 (S) Syntax error: possible missing 
    ';' or 
    ','? 
    "/usr/vacpp/include/iostream.h", line 113.1: 1506-058 (S) Label 
    
    public has already been defined on line 79 of 
    "/usr/vacpp/include/iostream.h". 
    "/usr/vacpp/include/iostream.h", line 114.39: 1506-046 (S) Syntax error. 
    "/usr/vacpp/include/iostream.h", line 115.9: 1506-045 (S) Undeclared identifier virtual. 
    "/usr/vacpp/include/iostream.h", line 117.41: 1506-046 (S) Syntax error. 
    "/usr/vacpp/include/iostream.h", line 117.25: 1506-485 (S) Parameter declaration list is incompatible with declarator 
    
    for flags. 
    "/usr/vacpp/include/iostream.h", line 124.50: 1506-045 (S) Undeclared identifier x_width. 
    "/usr/vacpp/include/iostream.h", line 127.33: 1506-045 (S) Undeclared identifier x_width. 
    "/usr/vacpp/include/iostream.h", line 130.29: 1506-045 (S) Undeclared identifier ostream. 
    "/usr/vacpp/include/iostream.h", line 130.38: 1506-045 (S) Undeclared identifier s. 
    "/usr/vacpp/include/iostream.h", line 130.9: 1506-045 (S) Undeclared identifier ostream. 
    "/usr/vacpp/include/iostream.h", line 131.41: 1506-277 (S) Syntax error: possible missing 
    ';' or 
    ','? 
    "/usr/vacpp/include/iostream.h", line 131.50: 1506-045 (S) Undeclared identifier x_tie. 
    "/usr/vacpp/include/iostream.h", line 133.41: 1506-046 (S) Syntax error. 
    "/usr/vacpp/include/iostream.h", line 133.25: 1506-485 (S) Parameter declaration list is incompatible with declarator 
    
    for fill. 
    "/usr/vacpp/include/iostream.h", line 133.25: 1506-1295 (W) The previous declaration of the nested function 
    "fill" does not have auto storage 
    
    class specification. 
    "/usr/vacpp/include/iostream.h", line 135.58: 1506-045 (S) Undeclared identifier x_precision. 
    "/usr/vacpp/include/iostream.h", line 137.41: 1506-046 (S) Syntax error. 
    "/usr/vacpp/include/iostream.h", line 137.25: 1506-485 (S) Parameter declaration list is incompatible with declarator 
    
    for rdstate. 
    "/usr/vacpp/include/iostream.h", line 140.37: 1506-045 (S) Undeclared identifier state. 
    "/usr/vacpp/include/iostream.h", line 141.45: 1506-045 (S) Undeclared identifier this. 
    "/usr/vacpp/include/iostream.h", line 143.34: 1506-277 (S) Syntax error: possible missing 
    ';' or 
    ','? 
    "/usr/vacpp/include/iostream.h", line 145.37: 1506-045 (S) Undeclared identifier state. 
    "/usr/vacpp/include/iostream.h", line 146.45: 1506-045 (S) Undeclared identifier this. 
    "/usr/vacpp/include/iostream.h", line 149.33: 1506-277 (S) Syntax error: possible missing 
    ';' or 
    ','? 
    "/usr/vacpp/include/iostream.h", line 151.41: 1506-046 (S) Syntax error. 
    "/usr/vacpp/include/iostream.h", line 151.25: 1506-485 (S) Parameter declaration list is incompatible with declarator 
    
    for eof. 
    "/usr/vacpp/include/iostream.h", line 153.41: 1506-046 (S) Syntax error. 
    "/usr/vacpp/include/iostream.h", line 153.25: 1506-485 (S) Parameter declaration list is incompatible with declarator 
    
    for bad. 
    "/usr/vacpp/include/iostream.h", line 941.1: 1506-224 (I) Incorrect pragma ignored.
    
    • alexcp
      alexcp
      4 Posts
      ACCEPTED ANSWER

      Re: xlC_r iostream problem

      ‏2011-10-18T16:38:03Z  in response to alexcp
      I did some changes.
      I'm now using a .cpp code and the ++ compiler r7.
      Now the errors are:

      
      ld: 0711-317 ERROR: Undefined symbol: .utf8_nextCharSafeBody_3_2 ld: 0711-317 ERROR: Undefined symbol: .u_foldCase_3_2 ld: 0711-317 ERROR: Undefined symbol: u_toupper_3_2 ld: 0711-317 ERROR: Undefined symbol: u_tolower_3_2 ld: 0711-317 ERROR: Undefined symbol: .u_getCombiningClass_3_2 ld: 0711-317 ERROR: Undefined symbol: .ucnv_setDefaultName_3_2 ld: 0711-317 ERROR: Undefined symbol: .ucnv_compareNames_3_2 ld: 0711-317 ERROR: Undefined symbol: .u_isprint_3_2 ld: 0711-317 ERROR: Undefined symbol: .u_islower_3_2 ld: 0711-317 ERROR: Undefined symbol: .u_isupper_3_2 ld: 0711-317 ERROR: Undefined symbol: .ucol_open_3_2 ld: 0711-317 ERROR: Undefined symbol: .uiter_setUTF8_3_2 ld: 0711-317 ERROR: Undefined symbol: .ucol_strcollIter_3_2 ld: 0711-317 ERROR: Undefined symbol: .ucol_close_3_2 ld: 0711-317 ERROR: Undefined symbol: .ucnv_open_3_2 ld: 0711-317 ERROR: Undefined symbol: .ucnv_convertEx_3_2 ld: 0711-317 ERROR: Undefined symbol: .ucnv_close_3_2 ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. make: The error code from the last command is 8.
      
      • alexcp
        alexcp
        4 Posts
        ACCEPTED ANSWER

        Re: xlC_r iostream problem

        ‏2011-10-18T17:41:08Z  in response to alexcp
        i added one -bnoquit to see the errors and it returned to me this:

        
        ---------------------------------------------------------------------------------------------- .utf8_nextCharSafeBody_3_2 [680]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 000015c0 .text    R_RBR    [32]    <.ustrnicmp> 00001640 .text    R_RBR    [32]    <.ustrnicmp> 0000182c .text    R_RBR    [34]    <.ustrcase> 00001b90 .text    R_RBR    [36]    <.unbc> 000048e0 .text R_RBR    [92]    .mbvalidatestringtype .u_foldCase_3_2           [682]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 000016b8 .text    R_RBR    [32]    <.ustrnicmp> 000016cc .text    R_RBR    [32]    <.ustrnicmp> u_toupper_3_2             [298]   ER DS ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 0000a7a4 .data    R_POS    [300]   <u_toupper_3_2> u_tolower_3_2             [302]   ER DS ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 0000a7a8 .data    R_POS    [304]   <u_tolower_3_2> .u_getCombiningClass_3_2  [688]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 00001c24 .text    R_RBR    [36]    <.unbc> .ucnv_setDefaultName_3_2  [690]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 00001f98 .text    R_RBR    [42]    <.setICUDefaultCodeSet> .ucnv_compareNames_3_2    [702]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 00002770 .text    R_RBR    [50]    <.isUTF8> .u_isprint_3_2            [724]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 00004934 .text    R_RBR    [92]    .mbvalidatestringtype .u_islower_3_2            [726]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 00004950 .text    R_RBR    [92]    .mbvalidatestringtype .u_isupper_3_2            [728]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 00004970 .text    R_RBR    [92]    .mbvalidatestringtype .ucol_open_3_2            [746]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 00005610 .text    R_RBR    [114]   .mbstrcoll .uiter_setUTF8_3_2        [748]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 00005674 .text    R_RBR    [114]   .mbstrcoll 00005688 .text    R_RBR    [114]   .mbstrcoll .ucol_strcollIter_3_2     [750]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 000056a0 .text    R_RBR    [114]   .mbstrcoll .ucol_close_3_2           [752]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 000056b0 .text    R_RBR    [114]   .mbstrcoll .ucnv_open_3_2            [770]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 00008118 .text    R_RBR    [178]   .convertStrExt 00008150 .text    R_RBR    [178]   .convertStrExt .ucnv_convertEx_3_2       [772]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 000081f4 .text    R_RBR    [178]   .convertStrExt .ucnv_close_3_2           [774]   ER PR ../../../common/share/i18n/mbutil.c(/opt/arsd25d1/api/lib/libar.a[mbutil.o]) 00008224 .text    R_RBR    [178]   .convertStrExt 0000823c .text    R_RBR    [178]   .convertStrExt ER: The 
        
        return code is 8.