IBM Z and LinuxONE Languages

Languages

Languages

Broad range of supported development languages and tools allows to transform software delivery practices.

 View Only
  • 1.  xlc 2.4 and xlclang 2.4.1 do not create DLL export side file

    Posted Fri April 02, 2021 12:29 PM

    In callme.c I have one function:

    int callme(int with)
    {
            if (with == 23)
                    return 42;
            else
                    return -1;
    }


    Now I'm trying to compile this using:

    $ xlc -qdll -Wc,xplink -Wl,xplink -qexportall -qrent -qlongname -o callme.dll callme.c
     IEW2689W 4C40 DEFINITION SIDE FILE IS NOT DEFINED.
    FSUM3065 The LINKEDIT step ended with return code 4.
    $ _


    What am I missing?

    The xlclang frontend does not understand -qdll:

    $ xlclang -qdll -Wc,xplink -Wl,xplink -qexportall -qrent -qlongname -o callme.dll callme.c
    FSUM3277 xlclang: The specified option "-qdll" is not supported.



    ------------------------------
    Volker Birk
    p≡p project
    https://pEp.software
    ------------------------------



  • 2.  RE: xlc 2.4 and xlclang 2.4.1 do not create DLL export side file

    Posted Fri April 02, 2021 07:06 PM
    Got it: it's -Wl,dll instead of -qdll. The documentation is vague on this, so I'm mentioning the resolution here in case others can benefit.

    ------------------------------
    Volker Birk
    p≡p project
    https://pEp.software
    ------------------------------



  • 3.  RE: xlc 2.4 and xlclang 2.4.1 do not create DLL export side file

    Posted Mon June 28, 2021 11:59 AM
    Thank you, it helps me.

    ------------------------------
    Modern Furniture
    ------------------------------