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
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Help with XCode and Fortran


Post Reply New Thread Subscribe

 
Thread Tools
rosula2008

 
Member Since: Nov 20, 2008
Posts: 3
rosula2008 is on a distinguished road

rosula2008 is offline
I need some help with my PhD thesis. I need to develop a program in Fortran and I am not too sure how to do this on my mac.

I have a copy of Microsoft Developer Studio, but when I try to run it on Parallels, I am getting a fatal error message. My co-worker told me that he saw this as well whenever he did not have MS Dev installed on the C drive. Since I have a “virtual C drive” I am wondering if I can even run MS Dev on parallels.

I have heard that it is easier to program on the Mac side of things, but I have not done this before. From what I understand there is a program called Xcode (although it is not on my machine right now, I think it came on the CD) that I could use.

Has any one every used X code for programming Fortran?

I am assuming that I need to install X code and a Fortran compiler. Does anyone know where I could get the compiler?

Can someone give me the basics on how I could start programming
Fortran on the Mac.

Thank you in advance.
QUOTE Thanks
xstep

 
xstep's Avatar
 
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
Quote:
Originally Posted by rosula2008 View Post
I have a copy of Microsoft Developer Studio, but when I try to run it on Parallels, I am getting a fatal error message. My co-worker told me that he saw this as well whenever he did not have MS Dev installed on the C drive. Since I have a “virtual C drive” I am wondering if I can even run MS Dev on parallels.
Plenty of people run the whole MS Dev Studio in VMs, so that in it self isn't your problem. You co-worker has indicated you are missing something. Search that message in some MDS forum or Google.

Quote:
Originally Posted by rosula2008 View Post
I have heard that it is easier to program on the Mac side of things, but I have not done this before. From what I understand there is a program called Xcode (although it is not on my machine right now, I think it came on the CD) that I could use.
When they talk 'easier', they tend to compare it to other popular languages, such as C++.

Yes, your install disc does have XCode, but I don't recall it having Fortran. If you want the latest XCode you can download it from Apple for free by signing up for a free developer id.

Quote:
Originally Posted by rosula2008 View Post
Has any one every used X code for programming Fortran?

I am assuming that I need to install X code and a Fortran compiler. Does anyone know where I could get the compiler?

Can someone give me the basics on how I could start programming
Fortran on the Mac.
I don't know, but let me Google that for you. Several people have discussed Fortran. Load XCode so you know what version you have. That may be relevant.

CameraTime - Time lapse photography for novice and advanced users.

When asking questions, post the version of your software. You'll receive better answers.

Please post your results to the thread as it is good feedback.
QUOTE Thanks
yserra

 
Member Since: May 14, 2008
Location: Arizona
Posts: 8
yserra is on a distinguished road
Mac Specs: Dual 2 GHz PowerPC G5, OS X V. 10.4.11 and iMac 2.66 GHz Intel Core 2 Duo OS X 10.5.2

yserra is offline
I have used my mac for programming in FORTRAN for several years now. However, I code in F77 (!) and use the GNU gcc/g77 compiler suite. You can google gcc and follow their instructions for downloading it for free to your mac. I believe there was a binary version available for my mac, but I run a powerpc with Tiger. You will have to see if their is a build for your mac and you will want gcc/gfortran since g77 is not supported anymore.

The easiest way to access open source for the mac and keep it up to date is using Fink (google, it is free). A helper program for fink is called FinkCommander (google, also free). Install Fink first, then the helper program. This gives you a gui interface for accessing many open source code out there for the mac. I believe this is how I got my gcc/g77 suite.

Alternatively, you can buy a compiler for the mac such as the Portland Group compilers,

PGI | Products

This product is pretty expensive but I understand they work very well and are used for some pretty heavy duty compiling (e.g. climate models) so will likely be around awhile. The software works for C, C++, FORTRAN and possibly others.


hope this was helpful. Yolande

yserra
QUOTE Thanks
yserra

 
Member Since: May 14, 2008
Location: Arizona
Posts: 8
yserra is on a distinguished road
Mac Specs: Dual 2 GHz PowerPC G5, OS X V. 10.4.11 and iMac 2.66 GHz Intel Core 2 Duo OS X 10.5.2

yserra is offline
FYI, I checked the gfortran website and there is a build for an intel mac running Tiger or Leopard.

GFortranBinaries - GCC Wiki

I believe these builds are 32-bit only. That is, the executables you create will not take advantage of a 64-bit machine.

-Y.
QUOTE Thanks

Post Reply New Thread Subscribe


« Really weird problem | C++/ C question »
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

All times are GMT -4. The time now is 08:34 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?