Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    compiler selection


    Hi All
    On our Red Hat Enterprise 4 machine we have two compilers installed. GCC version 3.4.6 which is installed as /usr/bin/gcc and /usr/bin/g++ and the newer GCC 4.1.0 which is installed as /usr/bin/gcc4 and /usr/bin/g++4.

    As a total linux newbie I am attempting to build a program which requires the later compiler but the configure script always chooses the g++ compiler. Can anyone tell me how I go about specifying the later compiler and forcing the build to use gcc4?

    Thanks

  2. #2
    Hi,
    don't know if you're still working on this issue, but...

    Should you be running an autoconf "configure script" then you can
    probably specify the compiler setting CC=/usr/bin/g++4 or similar.
    (see Autoconf - Running configure Scripts)

    cheers, kai

Posting Permissions

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