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 

Linking module library without releasing source code

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



Joined: 08 Mar 2007
Posts: 19

PostPosted: Thu May 03, 2007 5:42 pm    Post subject: Linking module library without releasing source code Reply with quote

Dear Fortran Aficionados,,

Can someone tell me how to pass along modules to be linked
by a user's code without giving away my source code for those
modules. I want to make math routines freely available to and
usable by others, but wish to kkep the source code to myself.

How to do this?

Thanks,
Ludwig
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu May 03, 2007 7:19 pm    Post subject: Reply with quote

The usual approach is to create an FTN95 DLL.

Alternatively you could create a static library or simply ship your .obj files.

If your modules are Fortran modules then you will need to ship the relevant .mod files and your users will have to use the FTN95 compiler.

If you avoid using Fortran modules then it may be possible to use your libraries with other compilers (not necessarily Fortran) particularly if you use the F_STDCALL keyword when declaring your subprograms.
Back to top
View user's profile Send private message AIM Address
Neo



Joined: 08 Mar 2007
Posts: 19

PostPosted: Mon Jun 11, 2007 6:27 am    Post subject: Creating FTN95 DLL files Reply with quote

Dear Sir,

Thus far I have simply compiled and run using PLATO.
So all this DLL material is a bit over my head. Is there
any good manual on how to do what you said with the
DLL?

With many thanks
Ludwig
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 -> General 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