ProC and other C file compilation problem on AIX

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amitsinghal
    New Member
    • Jan 2009
    • 1

    ProC and other C file compilation problem on AIX

    I am linking my compiled proC file with other C files and getting following error.

    ld: 0711-711 ERROR: Input file /opt/orabase/oracle/product/10.2.0/db_1/lib/libirc.a is empty.
    The file is being ignored.

    I used following command to compile my proC code.

    proc iname=dbConnect .pc code=ANSI_C parse=none

    Now I am linking the generated C file with other C files like this :

    set LIBPATH=/opt/orabase/oracle/product/10.2.0/db_1/lib

    /usr/vac/bin/xlc -o echo_client echo_client.c dbConnect.c -lpthread -L /opt/orabase/oracle/product/10.2.0/db_1/lib -lclntsh -ldl -lm -lpthread -lnsl -lirc


    Now getting this error:

    echo_client.c:
    dbConnect.c:
    ld: 0711-711 ERROR: Input file /opt/orabase/oracle/product/10.2.0/db_1/lib/libirc.a is empty.
    The file is being ignored.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Well, that libirc.a library/archive is most certainly empty (as your linker told you). What should be in it?

    kind regards,

    Jos

    Comment

    Working...