Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Nitrocide

macrumors 6502
Original poster
Sep 24, 2005
265
0
Bristol, UK
Hey,

Basically, i do C programming at UNI as part of my course on a Solaris machine. I dont have a Solaris machine, so which program should i use in OS X to do similar C programming?


Sorry if thats a really dumb question, i tried xcode a while ago, but got a bit lost.

Thankyou!
 

Sijmen

macrumors 6502a
Sep 7, 2005
709
1
For smaller things, you could try TextMate or vim. In the long run, on OS X, Xcode is what you need.
 

ChrisA

macrumors G5
Jan 5, 2006
12,914
2,164
Redondo Beach, California
Hey,

Basically, i do C programming at UNI as part of my course on a Solaris machine. I dont have a Solaris machine, so which program should i use in OS X to do similar C programming?


Sorry if thats a really dumb question, i tried xcode a while ago, but got a bit lost.

Thankyou!

I've been a Solaris user from day one. Be Solaris came out I used Sun's previous system "Sun OS"

Two answers:

1) Almost anything that will work on Solaris will work on Mac OS X. Bring up a terminal window and you will find that vi, gcc and make are all there. What else does a Solaris programer need? Ok maybe GNU Autotools, emacs or nedit and a million other things. Look up the "fink" web site at http://www.finkproject.org/ They have packaged up everything you need.

2) Get VMware Fusion. Install it on the Mac. Then go to the Sun web site and get Solaris 10. Solaris runs well under Fusion.
 

dannyjames

macrumors newbie
Jul 24, 2006
9
0
C programming on a mac

I am currently taking a C programming course on windows but since I have a mac (Powerbook G4 to be exact) and I do all of my programming in xcode. I think I choose "standard library" under BSD and then select a command line or C application under that. All of my programs run just fine under windows except for one cavat, I have to use the getchar instead of the getch command in my programs. I think I read somewhere that getch was a pc only command or something like that. Getchar does the same thing though.

Anyway, I currently do not have my powerbook but I will get back to you tomorrow on exactly what steps I have to take when writing a C program on my powerbok.

Good luck!
 

yeroen

macrumors 6502a
Mar 8, 2007
944
2
Cambridge, MA
Xcode is really nice, but you don't need the Xcode front-end to develop.

vi/emacs, gcc, make, etc. work as well in the terminal as they do anywhere else on Unix.
 

Nitrocide

macrumors 6502
Original poster
Sep 24, 2005
265
0
Bristol, UK
Thankyou so much guys! I forgot i posted to here, remembered again today though!

I tried installing Solaris 10 through Fusion before and it had some problems if i remember correctly :confused:, ill try again though.

I had a C programming test last week but actually didnt do too shockingly!

Thanks again guys!

x
 

tyr2

macrumors 6502a
May 6, 2006
833
234
Leeds, UK
I tried installing Solaris 10 through Fusion before and it had some problems if i remember correctly :confused:, ill try again though.

Ensure you assign a decent chunk of RAM to the virtual machine whilst you're installing Solaris. Preferably about 512Mb. You can always reduce this after its installed. If you try to install with less you can run into strange issues.
 

Nitrocide

macrumors 6502
Original poster
Sep 24, 2005
265
0
Bristol, UK
By the way, TextMate worked really well as far as I can see. Im only doing c programming on this course for 6 more months, and I'm hoping it's not included in the syllabus again to be honest! I just needed something to let me practice more than anything.

Cheers!
 

Nitrocide

macrumors 6502
Original poster
Sep 24, 2005
265
0
Bristol, UK
Ensure you assign a decent chunk of RAM to the virtual machine whilst you're installing Solaris. Preferably about 512Mb. You can always reduce this after its installed. If you try to install with less you can run into strange issues.

Thanks for the reply, well i have 2 gigs installed, and I'm pretty sure i split resources 50/50, i think it was more of an issue with my hard drive setup more than anything.
 

sord

macrumors 6502
Jun 16, 2004
352
0
All of my programs run just fine under windows except for one cavat, I have to use the getchar instead of the getch command in my programs. I think I read somewhere that getch was a pc only command or something like that. Getchar does the same thing though.
getch is part of curses, and works just fine in most platforms (assuming you link against curses and have your program setup to use it). My guess is Microsoft (in an effort to ruin the world) added their own getch for when not using curses (assuming curses is available on Windows)...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.