View previous topic :: View next topic |
Author |
Message |
arctica
Joined: 10 Sep 2006 Posts: 105 Location: United Kingdom
|
Posted: Sun Aug 11, 2013 4:44 pm Post subject: DISLIN issue through Plato |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Mon Aug 12, 2013 7:07 am Post subject: |
|
|
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. |
|
Back to top |
|
|
arctica
Joined: 10 Sep 2006 Posts: 105 Location: United Kingdom
|
Posted: Mon Aug 12, 2013 3:58 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Tue Aug 13, 2013 10:00 am Post subject: |
|
|
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. |
|
Back to top |
|
|
arctica
Joined: 10 Sep 2006 Posts: 105 Location: United Kingdom
|
Posted: Tue Aug 13, 2013 7:06 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Tue Aug 13, 2013 7:15 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
arctica
Joined: 10 Sep 2006 Posts: 105 Location: United Kingdom
|
Posted: Tue Aug 13, 2013 8:39 pm Post subject: |
|
|
Great Paul, that worked perfectly
Cheers
Lester |
|
Back to top |
|
|
|