如何安装和调用sun编译器而不是GCC? [英] How to install and call the sun compiler instead of GCC?
问题描述
在我以前的所有C ++项目中,我都使用gcc作为编译器。
由于某些原因,我想尝试使用Sun编译器。
如何我可以安装和使用这个编译器吗?
是否在Linux上预安装了Sun C ++编译器。 Solaris?
如何给他打电话?
Pablo
5月17日上午10点13分,pcs ... @ yahoo.com(Pablo Suarez)写道:
在我所有的以前的C ++项目我使用gcc作为编译器。
由于某些原因,我想尝试使用Sun编译器。
如何安装和使用它编译器改为?
是否在Linux上预安装了Sun C ++编译器。 Solaris?
我怎么称呼他?
Pablo
I高度怀疑 - 在Linux机器上的sun编译器。但反过来是可能的 - 在同一个太阳盒上同时使用sun c ++和g ++编译器。
你可以使用绝对路径来引用编译器。例如,您的
sun编译器可能位于/ usr / SUNWSpro / bin / CC,而您的g ++可能是/ usr / local / bin / g ++中的
。您可以要求管理员为您安装g ++
在太阳箱中。在所有的情况下(至少我所看到的),g ++可以在任何盒子(太阳,aix ......)上获得
但反过来是不可能的。
谢谢,
Balaji。
我想知道的是你为什么喜欢在linux上试用sun conpiler
系统?
5月17日,11:13 * pm,pcs ... @ yahoo.com(Pablo Suarez)写道:
在我之前的所有C ++项目中,我都使用gcc作为编译器。
由于某些原因,我想尝试使用Sun编译器。
如何安装和使用此编译器?
是否在Linux上预安装了Sun C ++编译器。 Solaris?
如何给他打电话?
Pablo
sun
HelloLinux写道:
我想知道的是你为什么喜欢在linux上试用sun conpiler
系统?
因为它有效吗?我们中的一些人更喜欢在多个
平台上使用相同的工具。
-
Ian Collins。
In all my previous C++ projects I used the gcc as compiler.
For some reasons I want to try out the Sun compiler instead.
How can I install and use this compiler instead?
Is the Sun C++ compiler pre-installed on Linux resp. Solaris?
How can I call him?
Pablo
On May 17, 10:13 am, pcs...@yahoo.com (Pablo Suarez) wrote:In all my previous C++ projects I used the gcc as compiler.
For some reasons I want to try out the Sun compiler instead.
How can I install and use this compiler instead?
Is the Sun C++ compiler pre-installed on Linux resp. Solaris?
How can I call him?
PabloI highly doubt that - sun compiler on a linux box. But the reverse is
possible - having both sun c++ and g++ compiler on the same sun box.
You may refer the compilers using the absolute path. For example, your
sun compiler could be at /usr/SUNWSpro/bin/CC and your g++ could be
at /usr/local/bin/g++. You may ask your admin to install g++ for you
in the sun box. In all the cases(atleast what i have seen), g++ could
be on any box(sun,aix..) but the reverse isn''t possible.
Thanks,
Balaji.
What I want know is why do you like to try sun conpiler on a linux
system?
On May 17, 11:13*pm, pcs...@yahoo.com (Pablo Suarez) wrote:In all my previous C++ projects I used the gcc as compiler.
For some reasons I want to try out the Sun compiler instead.
How can I install and use this compiler instead?
Is the Sun C++ compiler pre-installed on Linux resp. Solaris?
How can I call him?
Pablosun
HelloLinux wrote:What I want know is why do you like to try sun conpiler on a linux
system?
Because it works? Some of us prefer the same tools on more than one
platform.
--
Ian Collins.
这篇关于如何安装和调用sun编译器而不是GCC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!