Silverfrost Forums

Welcome to our forums

Wheat and chaff

27 Feb 2012 1:21 #9718

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

28 Feb 2012 4:44 #9729

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

29 Feb 2012 9:19 #9731

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.

Please login to reply.