View previous topic :: View next topic |
Author |
Message |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Mon Feb 27, 2012 2:21 pm Post subject: Wheat and chaff |
|
|
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 |
|
|
Jim
Joined: 21 Jul 2006 Posts: 24 Location: USA
|
Posted: Tue Feb 28, 2012 5:44 pm Post subject: How do I? |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7930 Location: Salford, UK
|
Posted: Wed Feb 29, 2012 10:19 am Post subject: |
|
|
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 |
|
|
|