Silverfrost Forums

Welcome to our forums

Beginner: Problems with linking DLL

26 Jun 2008 3:21 #3418

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.

26 Jun 2008 4:15 #3421

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.

Please login to reply.