New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Switcher Hangout The place for switchers to discuss their new machines, and how to work with OS X. General support can be had here for newbie stuff, like "How do I restart my new iMac?" :)

C Compiler


Post Reply New Thread Subscribe

 
Thread Tools
girgroupie47

 
girgroupie47's Avatar
 
Member Since: Apr 12, 2007
Location: Maryland
Posts: 10
girgroupie47 is on a distinguished road
Mac Specs: Black MacBook - 2.00GHz C2D - 2GB RAM - 120GB hard drive - Superdrive 6x

girgroupie47 is offline
I don't know if this is where I should post this or not but anyway... My lovely new black MacBook is supposed to be here on friday! The problem is that I'm a computer science major and am currently taking a C programming class. We are using microsoft visual C++ compiler, and I'm not quite sure how I'm going to use my mac for such things. I really don't want windows on my mac at all. But I guess if worse comes to worse, I'll use Parallels. does anyone have any suggestions? I just need a basic C or C++ compiler that is cross platform compatible I guess (if there is such a thing) I really have no idea. HELP!
QUOTE Thanks
xtd

 
Member Since: Apr 12, 2007
Posts: 1
xtd is on a distinguished road

xtd is offline
If you just need a xplatform C++ compiler no problem. Xcode - comes with your Mac is based on GCC. Note GCC will not build under MS Visual C++.

Here a very old link that may help you out.

http://forums.macrumors.com/showthread.php?t=180022
QUOTE Thanks
mac57

 
mac57's Avatar
 
Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,560
mac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant future
Mac Specs: iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM

mac57 is offline
Hi girgroupie47, Welcome to Mac Forums!!

You can install GNU C++ (gcc) on your machine. It is available on your Mac OS X install DVD, in the Optional Installs area. I have done this and it works well.

My Macs: iMac 27" 3.4 GHz, Mac Pro 3.2 GHz, PowerMac G5 Quad 2.5 GHz, G4 Cube with 1.2 GHz Upgrade
My iStuff: 64GB iPhone 5, 64GB iPad4, 30GB iPod Video, 16GB iPod Touch
My OS': Mac OS X Lion, Mac OS X Snow Leopard, Mac OS X Tiger, Mac OS 9.2.2, openSUSE 10.3
I was on the Mac-Forums honor roll for September 2007
QUOTE Thanks
gilesjuk

 
gilesjuk's Avatar
 
Member Since: Apr 03, 2007
Posts: 301
gilesjuk has a spectacular aura about
Mac Specs: Black MacBook 2GB, Mac Pro 2.66Ghz 3GB X1900.

gilesjuk is offline
If your classes teach you ANSI C and use the standard C libraries like stlib then you will be fine.

You typically type "cc sourcefile.c"

Where you will struggle is if your course requires you do use Windows APIs or any visual development. You will have to do similar things on the Mac using XCode and hope the university are symapthetic.
QUOTE Thanks
fleurya

 
fleurya's Avatar
 
Member Since: Nov 18, 2006
Location: Anytown, USA
Posts: 4,922
fleurya is a name known to allfleurya is a name known to allfleurya is a name known to allfleurya is a name known to allfleurya is a name known to allfleurya is a name known to allfleurya is a name known to all
Mac Specs: 27" iMac 2.7GHz Core i5, iPhone 4S, 3rd gen iPad

fleurya is offline
There's a program from a company called codeweavers that allows you to install and run windows apps on you Mac natively. I think I saw Visual Studio on their list of compatible apps. It's probably a good option and cheaper/easier to use than Parallels.

http://www.codeweavers.com/products/cxmac/
QUOTE Thanks
girgroupie47

 
girgroupie47's Avatar
 
Member Since: Apr 12, 2007
Location: Maryland
Posts: 10
girgroupie47 is on a distinguished road
Mac Specs: Black MacBook - 2.00GHz C2D - 2GB RAM - 120GB hard drive - Superdrive 6x

girgroupie47 is offline
We do use stuff from the standard libraries (conio.h, stdio.h) but we aren't doing any kind of GUIs or anything like that. So if I'm understanding correctly, it sounds like GCC will work great. (thank god! I really don't want windows on my nice new mac) It's supposed to come tomorrow, I have been glued to FedEx's website, tracking it since Saturday (is that weird?) Anyway thanks everyone!
QUOTE Thanks
vaiman

 
Member Since: Sep 19, 2009
Location: UK - Newcastle
Posts: 13
vaiman is an unknown at this point
Mac Specs: Mac Pro 2.26GHz 8-Core

vaiman is offline
Nope, I have been checking my tracking every minute lol. Still got 2 days!!
Good luck with the C++, sooo glad I done it 6 years ago and never have to go back.
QUOTE Thanks

Post Reply New Thread Subscribe


« yahoo widgets | Battery treatment »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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 Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
C compiler for OSX robbiemullen OS X - Development and Darwin 6 03-23-2008 05:50 PM
F90 Compiler not working ... rpmgatech OS X - Development and Darwin 0 03-13-2007 03:09 PM
Looking for g77 compiler for iBook G4 gomex OS X - Operating System 2 11-17-2006 01:10 PM
C++ IDE and/or Compiler for other OS Mitch OS X - Development and Darwin 3 03-28-2006 11:07 AM
C++ Compiler/ Visual Studio Alternative? echo12 Running Windows (or anything else) on your Mac 3 08-25-2004 07:36 PM

All times are GMT -4. The time now is 09:48 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?