View previous topic :: View next topic |
Author |
Message |
Morris
Joined: 26 Jun 2008 Posts: 1
|
Posted: Thu Jun 26, 2008 4:21 pm Post subject: Beginner: Problems with linking DLL |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Thu Jun 26, 2008 5:15 pm Post subject: |
|
|
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 |
|
|
|