Silverfrost Forums

Welcome to our forums

DISLIN issue through Plato

11 Aug 2013 3:44 #12805

Hello,

Seem to have hit a bit of a random issue trying to compile code using the DISLIN graphics library through Plato.

The DISLIN library is all setup correctly:

DISLIN=c:\dislin

Path appended: c:\dislin\win

dislin.mod in the c:\dislin top path as specified. Checked that it all runs fine from the command line

eg ftn95 -a example.f95 /MOD_PATH c:\dislin f95link -a example.obj

That all goes fine and the executable is built. However, trying to do the same through the Plato build option is not playing ball. The command line option has the MOD_PATH set correctly, the library is added as a reference and all should build correctly, but it fails to see the c:\dislin directory for the module.

If I copy the module to the program folder and build, no problem.

It's not a big deal to just copy the module to the folder where you build your applications, but one would think that the command line options would be read!

Any ideas?

Cheers Lester

12 Aug 2013 6:07 #12808

If you haven't done so already, check the command line issued by Plato. You will find it in a temporary file called BuildLog in the local folder.

12 Aug 2013 2:58 #12812

Hi Paul,

Checked the BuildLog and there is no MOD_PATH written

so gives the same error

Compiling and linking file: exa_f90.f90 C:\dislin\examples\exa_f90.F90(132) : error 404 - Cannot find definition for MODULE DISLIN Compilation failed.

I am assuming that it should be in the sequence (from the BuildLog file):

FTN95.EXE 'C:\dislin\examples\exa_f90.f90' /NO_BANNER /VS7 /DELETE_OBJ_ON_ERROR /ERROR_NUMBERS /UNLIMITED_ERRORS /LINK /REF 'C:\dislin\diss32.lib'

As I said previously, it is no big deal to have the module in the program folder, just not sure why it is not seeing it. Verified the same issue on my work computer too.

Re-compiling the module makes no difference either.

DISLIN works fine; just MOD_PATH is not for some reason.

Lester

13 Aug 2013 9:00 #12820

You need to create a Plato project in order to set the project properties so that /MOD_PATH is applied.

I have checked this out and it works as expected for a single path. There are also instructions on how to handle multiple paths from Plato.

13 Aug 2013 6:06 #12831

Hi Paul,

Created a project and added the source and references as needed. The build still does not find the module path.

The DISLIN variable and path to the Windows folder (c:\dislin\win) is all correctly set.

Any ideas why it does not see the MOD_PATH compiler option?

Two workarounds are of course having the module in the program folder or build the dislin.f90 source with the main program. This is not solving the issue though.

Tested this on home and work computer and get the same results when using a project.

Cheers

Lester

13 Aug 2013 6:15 #12832

From the Project menu select Properties.

Under 'Compiler Options' and Source, select 'Specify MODULE paths'.

Now type the path in the box labelled Params.

Finally click on 'Apply to All'.

You don't need quotation marks around the path. Plato will put them in for you.

13 Aug 2013 7:39 #12834

Great Paul, that worked perfectly 😃

Cheers Lester

Please login to reply.