compiling with Bstatic

From: david (wong.david-c_at_epa.gov)
Date: 05/17/04

  • Next message: Rich Teer: "Re: compiling with Bstatic"
    Date: 17 May 2004 11:25:15 -0700
    
    

    Hi,

      I was able to do the following successfully:

      cc -xarch=v9 -Xa -o t.x t.c

    But when I did the following:

    cc -xarch=v9 -Xa -Bstatic -o t.x t.c,

    I got the following error messages:

    Undefined first referenced
     symbol in file
    llseek t.o
    fseek t.o
    atexit /opt/SUNWspro/WS6U1/lib/v9/crt1.o
    exit /opt/SUNWspro/WS6U1/lib/v9/crt1.o
    fwrite t.o
    fclose t.o
    _exit /opt/SUNWspro/WS6U1/lib/v9/crt1.o
    perror t.o
    fopen big_file.o
    ld: fatal: Symbol referencing errors. No output written to t.x

    I wonder there is a way to fix this. Your help is greately
    appreciated.

    Best regards,
    David Wong


  • Next message: Rich Teer: "Re: compiling with Bstatic"