Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > cc

cc
Thread Tools
Addicted to MacNN
Join Date: Aug 2000
Location: Retired
Status: Offline
Reply With Quote
Mar 27, 2001, 08:06 PM
 
I new to coding in Unix. I see in /usr/bin is cc...How do I get it to work system wide? I try changing to something I want to compile, like /icewm-1.0.4 and then typing cc and it tells me "no input files"..when I try -B or just plain cc to makefile or configure it tells me:
/usr/bin/ld: Makefile bad magic number (not a Mach-O file)
I'm lost..help!
Power Macintosh Dual G4
SGI Indigo2 6.5.21f
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Mar 27, 2001, 09:22 PM
 
You have to specify input files (i.e. cc -o test main.c will create a program "test" compiled from main.c).

If you're compiling something made by someone else, the most common procedure is:

./configure
make
make install
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Addicted to MacNN
Join Date: Aug 2000
Location: Retired
Status: Offline
Reply With Quote
Mar 27, 2001, 10:11 PM
 
This is what I get if I try the ./configure...I get this:
"checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables".
Power Macintosh Dual G4
SGI Indigo2 6.5.21f
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Mar 27, 2001, 10:23 PM
 
Solved by:

sudo ln -s /usr/bin/cc /usr/bin/gcc
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Addicted to MacNN
Join Date: Aug 2000
Location: Retired
Status: Offline
Reply With Quote
Mar 28, 2001, 10:35 AM
 
Thanks!!
Power Macintosh Dual G4
SGI Indigo2 6.5.21f
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:50 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2