From: Andrew I. <And...@te...> - 2000-11-29 14:32:29
|
Emyr wrote: > 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..." See http://www.nanotech.wisc.edu/~khan/software/gnu-win32/mno-cygwin-howto.txt Note especially the bit $ objdump -p hello.exe | grep "DLL Name" to see which DLLs the binary is linked to. You might also want to check that you did "hash -r" under Cygwin bash and check that "type -a gcc" gets you the Mingw gcc and not the Cygwin one. What does your PATH variable look like, i.e., how did you add Mingw's bin dir to the path? Also make sure you don't have GCC_EXEC_PREFIX set and perhaps try removing the Cygwin bin directory (/usr/bin) from the path -- this isn't a long term fix, but you might try it just to check which binary is being called. HTH, Andrew |