gcc default

Open discussion on or around SGI; software/hardware related posts should go in the appropriate subforum.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
s0ke
Donor
Donor
Posts: 192
Joined: Mon Feb 24, 2003 8:27 am
Location: TX

gcc default

Unread postby s0ke » Mon Feb 24, 2003 5:37 pm

How do I set up gcc to be my default compiler, instead of cc (since I am unfortunate and do not have a lics).
What I mean is, instead of typing cc at the command prompt, I want to be able to just type gcc, or use it like vfc -i "cc -E"

vegac
Posts: 745
Joined: Thu Jan 23, 2003 11:34 am
Contact:

Unread postby vegac » Mon Feb 24, 2003 6:03 pm

First, make sure that /usr/freeware/bin is in your path.
Second, make things with gmake instead of make
Third, you'll most likely have to set some variables, such as
CC=gcc CXX=g++ CFLAGS=-O2 CXXFLAGS=-O2

Then, just make as normal and anything made to compile with GCC should (of course, you may have to ALSO do -I/usr/freeware/include and -L/usr/freeware/lib)

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8145
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Re: gcc default

Unread postby nekonoko » Mon Feb 24, 2003 8:44 pm

One of the easiest ways to set up your SGI Freeware paths is to just use
/usr/freeware/bin/fixpath ... everything you need will be set up automatically.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
s0ke
Donor
Donor
Posts: 192
Joined: Mon Feb 24, 2003 8:27 am
Location: TX

Unread postby s0ke » Tue Feb 25, 2003 10:17 am

I don't seem to have that command in my freeware directory.
When I run /usr/freeware/bin/fixpath it just says command not found.

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8145
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Tue Feb 25, 2003 10:26 am

toaster wrote:I don't seem to have that command in my freeware directory.
When I run /usr/freeware/bin/fixpath it just says command not found.


It's part of fw_common; first package in http://freeware.sgi.com/cd-4/dist/

I'll post just the "fixpath" script when I get home from work ... I can't reach my network from work due to the firewall here.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8145
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Tue Feb 25, 2003 12:28 pm

Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
s0ke
Donor
Donor
Posts: 192
Joined: Mon Feb 24, 2003 8:27 am
Location: TX

Unread postby s0ke » Tue Feb 25, 2003 1:14 pm

I was able to install it from an old freeware cd and run it, thanks


Return to “SGI: Discussion”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest