Silverfrost Forums

Welcome to our forums

Publishing Single Exe without including Multiple DLLs

31 Aug 2011 6:02 #8875

Hello,

I have developed an application with Visual Studio 2010 and successfully integrating FORTRAN Code. There are multiple projects within a single solution file. Therefore, this results in multiple DLLs including the exe to run the application.

The executable works fine when all the accompanying DLLs are within the same folder as the exe. However, I want to deliver a single executable without any other DLLs.

Does anyone know how to make a single executable without DLLs hanging within the same folder or on the machine? I want to send someone the final executable and have them be able to run the application without anything else install on their machine. Is this even possible?

Regards, Bill Johnson

1 Sep 2011 12:23 #8882

Bill,

For a FTN95 win32 executable, you need only salflibc.dll somewhere in the path. My understanding of this is not guaranteed, but I think that you can not avoid suplying this dll. salflibc.lib is used at link time to link your resulting .exe to the .dll.
I don't think there is a static version of salflibc.lib that can be linked, to avoid inclusion of the .dll. (Lahey provided this equivalent)

Your comment that you have multiple DLLs implies that you are also linking other dynamic libraries. I'm not sure if these are from other suppliers or you have created them yourself. I avoid creating dll's so all my own libraries are static and reside in the .exe.

I have no experience of .NET to comment on the requirements for this.

John

1 Sep 2011 2:26 #8884

Hi John,

Thank you for the reply. Where do I find the salflibc.dll?

Thanks, Bill

1 Sep 2011 3:21 #8885

Bill,

Run SALDIAG and you can find out a lot. or SET or PATH in a dos box will provide the info. Multiple copies of different versions of salflibc.dll causes problems !

John

2 Sep 2011 4:24 #8895

Hello John,

What is SALDIAG?

Bill

2 Sep 2011 5:58 #8899

saldiag.exe is a diagnostic tool that you will find it the compiler folder. By default the compiler is installed to

c:\Program Files (...)\Silverfrost\FTN95

This tool can search for copies of salflibc.dll on your machine.

Please login to reply.