forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Wheat and chaff

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Suggestions
View previous topic :: View next topic  
Author Message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Mon Feb 27, 2012 2:21 pm    Post subject: Wheat and chaff Reply with quote

Might it be worthwhile to have some more content areas in the forum, such as "New to Fortran", "New to FTN95" and "How do I ... ?" - I read the "Support" area, and find a request from someone who clearly never programmed a line of Fortran before, or who just downloaded the PE and hasn't read the documentation etc.

More in hope than expectation, this might at least sort out how much help they need ...

E
Back to top
View user's profile Send private message
Jim



Joined: 21 Jul 2006
Posts: 24
Location: USA

PostPosted: Tue Feb 28, 2012 5:44 pm    Post subject: How do I? Reply with quote

Absolutely! My next post was going to ask another question. For us casual users, there is a great need to understand some basics; like the following:

How do I use the C compiler in FTN95? Show an example with a source file and a header file.

Have an example using Visual Studio integration with FTN95.

How do I make a DLL?

How do I compile separate subroutines and link together to make an executable or DLL?

I am not sure where to go with these questions or if they are better in a manual.

Thanks,

Jim
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Wed Feb 29, 2012 10:19 am    Post subject: Reply with quote

The idea behind an IDE is that it should allow you to "follow your nose". Hopefully Plato, which is modelled on Visual Studio, allows you to do this to a large extent.

Basically you use the menu items to create a project (following the given prompts on the way) and then "Build" the executable or DLL by clicking on one of the toolbar buttons.

The FTN95 help file provides sections on getting started with both Visual Studio and Plato.

The choice between making an executable or DLL is based on your response to options when creating a project.

Subroutines can be placed anywhere, in various files or just one if you prefer. The linker joins everything together but again, this is all automatic if you create a project in Visual Studio or Plato.

The interoperability of FTN95 with C is described in the FTN95 help file. Basically you need to find out how to create the interface from FTN95 Fortran. The given .ins files in the INCLUDE folder give you a clue.

C/C++ code can be written in files separate from Fortran in a Plato project (not sure about Visual Studio here). Then, provided you have the correct interface in your Fortran code, the linker (and IDE) will do everything for you.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Suggestions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group