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 

Beginner: Problems with linking DLL

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



Joined: 26 Jun 2008
Posts: 1

PostPosted: Thu Jun 26, 2008 4:21 pm    Post subject: Beginner: Problems with linking DLL Reply with quote

Hi,

I'm trying to link a DLL which has some subroutines that I need to run in it. I started up a new project and added the calling program as a source then added the DLL as a reference used the /import_lib and it gives me:

fatal 41: - more than one source specified

and then can't find the .obj file. I'm really new to programming and I'm sure I've made a heinous mistake but I can't find it.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Jun 26, 2008 5:15 pm    Post subject: Reply with quote

If your DLL and executable are both compiled with FTN95 then you should not use /import_lib. Compile the executable without reference to the DLL and then reference the DLL via SLINK.

Path names that have spaces in them should be enclosed in double quotes (on the FTN95 command line) otherwise FTN95 thinks that one part is another source file and it cannot cope.
Back to top
View user's profile Send private message AIM Address
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