C/C++

C/C++

C/C++

Your one-stop destination to learn and collaborate about the latest innovations in IBM C/C++ for z/OS compilers to develop high-performing C/C++ applications and system programs on z/OS while maximizing hardware use and improving application performance.

 View Only
Expand all | Collapse all

Creating a sharedlibrary(.so) dll with c and cobol using c89 for 64bilt

  • 1.  Creating a sharedlibrary(.so) dll with c and cobol using c89 for 64bilt

    Posted Fri May 01, 2015 04:45 PM

    Hi 

    I am trying to create a DLL with c cobject file for 64-BIT and it fails with below error code. It works for 31 bit , buy when I use  "lp64" option it fails.Appreciate any help.

     

    c89 -W l,lp64,dll -o libMyLib.so TEST.o "//'TEST.JOBLIB.OBJ(TEST)'"

     

    Error details:

    IEW2469E 9907 THE ATTRIBUTES OF A REFERENCE TO ETFTEST FROM SECTION TEST#C  
             DO NOT MATCH THE ATTRIBUTES OF THE TARGET SYMBOL. REASON  2           
          

    Note : It compiles  and generates a .o file with lp64 option without any errors. 

     

    Appreciate any help.

     

     
    pathi7


  • 2.  Re: Creating a sharedlibrary(.so) dll with c and cobol using c89 for 64bilt

    Posted Tue May 26, 2015 11:50 AM

    Hi,

    64bit and 31bit code cannot be linked together. It is likely that TEST is in 31bit, and MyLib is 64bit.

     

    Thanks.
    Regards,
    Raymond

    raym