Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Posts
    8

    Angry Unanswered: Compiling with Esql-C and gcc on 64 bits Solaris

    Hi everybody.

    I'm trying to compile an ESQL-C program using gcc instead of cc, the box is an E-15000 from SUN, with Solaris at 64 bits. I set the variable INFORMIXC to gcc.

    The problem I have is that when I execute:

    esql -c -g -D_REENTRANT file.ec

    I get the error:

    gcc: language arch=v9 not recognized
    gcc: file.c: linker input file unused because linking not done

    As far I can see "language arch=v9" is a flag passed by esql command to cc, in order to produce a 64 bits executable, but this flag is not recognized by gcc wich uses "-m64" to do the same thing.

    Does anybody knows how to avoid esql passes the flag "language arch=v9" to c compiler?

    Thanks in advance.

  2. #2
    Join Date
    Sep 2002
    Location
    Guanajuato, Mexico
    Posts
    8

    Red face modify (a copy ) esql

    Hello:
    in $INFORMIXDIR/bin the file esql is a script, (copy to esqltest ) and
    modify vars like CC CPP ... , I remove this flag and work, the flag is for c of SUN.

    Sorry my bad English

  3. #3
    Join Date
    Mar 2004
    Posts
    8

    Smile Thanks!!!!!

    Thank you, this really works!!!!

  4. #4
    Join Date
    Mar 2004
    Posts
    8

    Smile Thanks!!!!!

    Thank you, this really works!!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •