g95 executables on Windows require cygwin1.dll on PATH

beliavsky_at_aol.com
Date: 12/22/04


Date: 22 Dec 2004 13:46:26 -0800

If one creates an executable using g95 on Windows, one needs a DLL to
be on the PATH of the machine where the executable is run. I'd guess,
but have not checked, that gfortran executables work the same way. I
don't think executables created by g77 or commercial compilers require
require a DLL in order to run on the target machine.

Would this DLL requirement would cause problems for production use of
g95 and gfortran? Is there a way to add a compiler option so that the
needed code from the DLL is automatically inserted in the executable,
which could then be run on any Windows machine?



Relevant Pages

  • Re: Cannot activate sbcl
    ... but I think what happens is that Windows sees that your executable has a DATA section that might overlap a DLL's address space then it would reallocate that DLL to different address space. ... VirtualAlloc dynamically in your code is that your program and all its ... What can be done here is to have many tiny executables with different BSS sections in them, which then load a bigger executable in the form of a DLL. ...
    (comp.lang.lisp)
  • Re: [Full-disclosure] Linux big bang theory....
    ... OSX isn't using all of the tricks like windows does to try and hide ... Ever heard of dll ... Do you even know the purpose of using a DLL instead of an EXE? ... designed to hide executables for security reasons. ...
    (Full-Disclosure)
  • Re: Why do we need executables in certain formats ?
    ... > Can anybody explain me why do we need executables in certain formats? ... Modern virtual memory processors can locate to ... ..DLL files changed out from under them, ...
    (comp.lang.asm.x86)
  • Re: System-wide hooking, VB+ASM
    ... Yes, the DLL entry point, whether it is called DllMain or something else, is ... Windows before OLE existed. ... For half a century, compilers have generated object ... executables using the DLL get the new version automatically. ...
    (microsoft.public.vb.winapi)
  • Re: Dynamic linking with symbols
    ... And a dll which ... > two different executables. ... Try putting your "exported code" into a static library which your ... EXE links against. ...
    (microsoft.public.vc.language)