Operating System - HP-UX
1822272 Members
3983 Online
109642 Solutions
New Discussion юеВ

Re: Compilation Issue....

 
Anand_30
Regular Advisor

Compilation Issue....

I have to compile 2 applications in one machine. One application compiles with gcc - 2.7.2.1 and the other application compiles with gcc - 2.9.6 or higher. Can I have both the compilers installed in my machine. How can I point the applications to use the different compilers. I am using HP-UX 10.20.

Anand.
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Compilation Issue....

You should be able to handle this with the PATH variable, or the SHLIB_PATH variable.

You may need a parameters file or shell script to make sure the application points to the verision of gcc it needs to run properly.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Anand_30
Regular Advisor

Re: Compilation Issue....

Steven,

Thanks for your response. Do you have any sample scripts or any suggestions on how to develop the script to make my applications point to the different versions of the compiler.

Also, please let me know how this can be accomplished with the PATH or SHLIB_PATH variable.

The compiler paths are as follows:

gcc - 2.7.2.1 ----- /opt/Apple/Developer/Executables/gcc

gcc - 2.9.6 ---- /usr/cygnus/hppa-000310/H-hppa1.1-hp-hpux10.20/bin/gcc

Anand