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 

DISLIN issue through Plato

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



Joined: 10 Sep 2006
Posts: 105
Location: United Kingdom

PostPosted: Sun Aug 11, 2013 4:44 pm    Post subject: DISLIN issue through Plato Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Aug 12, 2013 7:07 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
arctica



Joined: 10 Sep 2006
Posts: 105
Location: United Kingdom

PostPosted: Mon Aug 12, 2013 3:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Aug 13, 2013 10:00 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
arctica



Joined: 10 Sep 2006
Posts: 105
Location: United Kingdom

PostPosted: Tue Aug 13, 2013 7:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Aug 13, 2013 7:15 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
arctica



Joined: 10 Sep 2006
Posts: 105
Location: United Kingdom

PostPosted: Tue Aug 13, 2013 8:39 pm    Post subject: Reply with quote

Great Paul, that worked perfectly Smile

Cheers
Lester
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support 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