--- Emyr James <emyr.james@...> wrote:
> Dear all,
> I have installed Mingw and Cygwin.
> I have set the path so that when I do gcc it finds the mingw compiler
> I followed the instructions in the faq to create the test dll and the
> hello.exe that uses it.
> It works fine in the directory it's built in.
> However, I copied tst.dll to c:\winnt\system32 and copied hello.exe to a
> different directory.
> Now when I try to run it I get "...can't find dll....cygwin1.dll..."
> Do executables created with mingw need this dll or have I gone wrong
> somewhere else (include paths, link paths etc.) ?
No, that is the purpose of MinGW. It is to rid us of the depenancy to
cygwin1.dll. What has happened is that you've actually used the Cygwin gcc and
not the MinGW gcc. Cygwin's gcc, FWIW, can build native programs using the
CRTDLL runtime (future plans will change this to MSVCRT) with a special switch
It is possible to use Cygwin's tools for the POSIX environment and also use
MinGW's gcc/binutils. I'll have to create documentation on how to sanely do
this. For the time being try using the -mno-cygwin switch.
--- <http://earniesystems.safeshopper.com> ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
--- Minimalist GNU for Windows <http://www.mingw.org/> ---
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.