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

kbboy

macrumors newbie
Original poster
Jun 14, 2007
4
0
Hi,

I am new to this forum and Mac too. In fact i have always used windows only throughout life.

OK, i have a code i downloaded. It has a bunch of .H and .CC files and also a makefile. Can someone please tell me how to compile and run the code on mac. Please remember that i am new to mac, so some specific terminologies might not be known to me.

thanks.
 

kbboy

macrumors newbie
Original poster
Jun 14, 2007
4
0
You need to download an install the latest version of XCode from the http://developer.apple.com. Sign up (it's free), and download and install.

thanks for the help.

Actually there's another problem, the Mac is a server computer and i am remotely connected to it via vnc. I dont have admin rights :(

How can i find if it already installed or not or any other method say using g++? Its a server lots of people connect to when they have to run heavy programs( requiring huge memory) so i guess it might contain some compilers already just that i dont know how to find out.

thanks again for the quick reply;
 

kbboy

macrumors newbie
Original poster
Jun 14, 2007
4
0
No admin rights, therefore no installation of XCode (and GCC), and therefore, no ability to compile. Sorry!

g++ and GCC are different?

I have been able to run a single file code using g++. Only that i dont know how to run a multi file code using g++.
 

yellow

Moderator emeritus
Oct 21, 2003
16,018
6
Portland, OR
g++ and GCC are different?

I have been able to run a single file code using g++. Only that i dont know how to run a multi file code using g++.

No, they are the same thing.

Duh.. that's right, you said this was OS X Server, which I believe comes with the XCode tool installed by default.

In this case, the code that you downloaded should have a make file with it, yes?
 

Krevnik

macrumors 601
Sep 8, 2003
4,101
1,312
g++ and GCC are different?

I have been able to run a single file code using g++. Only that i dont know how to run a multi file code using g++.

Here is a silly idea: From a terminal window, go to the directory these files are in, and run the command 'make'. See how that goes.

If it doesn't work, then the Makefile probably needs to be updated a bit, which might be complicated.
 

kbboy

macrumors newbie
Original poster
Jun 14, 2007
4
0
No, they are the same thing.

Duh.. that's right, you said this was OS X Server, which I believe comes with the XCode tool installed by default.

In this case, the code that you downloaded should have a make file with it, yes?

yes it does..
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.