i am porting an application built with Visual C++ to build under Mingw gcc (CXX=/usr/bin/i686-w64-mingw32-g++) in my development directory x, the program apparently builds correctly, but it quits directly when run. when i copy the exe to another directory y, the program runs well. also, in the development directory, ldd shows: $ ldd mung.exe ntdll.dll => /xp0/WINDOWS/system32/ntdll.dll (0x7c900000) kernel32.dll => /xp0/WINDOWS/system32/kernel32.dll (0x7c800000) while in the copy directory, ldd shows: $ ldd mung.exe ntdll.dll => /xp0/WINDOWS/system32/ntdll.dll (0x7c900000) kernel32.dll => /xp0/WINDOWS/system32/kernel32.dll (0x7c800000) GLU32.DLL => /xp0/WINDOWS/system32/GLU32.DLL (0x68b20000) msvcrt.dll => /xp0/WINDOWS/system32/msvcrt.dll (0x77c10000) OPENGL32.dll => /xp0/WINDOWS/system32/OPENGL32.dll (0x5ed00000) ADVAPI32.dll => /xp0/WINDOWS/system32/ADVAPI32.dll (0x77dd0000) RPCRT4.dll => /xp0/WINDOWS/system32/RPCRT4.dll (0x77e70000) Secur32.dll => /xp0/WINDOWS/system32/Secur32.dll (0x77fe0000) GDI32.dll => /xp0/WINDOWS/system32/GDI32.dll (0x77f10000) USER32.dll => /xp0/WINDOWS/system32/USER32.dll (0x7e410000) DDRAW.dll => /xp0/WINDOWS/system32/DDRAW.dll (0x73760000) DCIMAN32.dll => /xp0/WINDOWS/system32/DCIMAN32.dll (0x73bc0000) glut32.dll => /usr/bin/glut32.dll (0x10000000) WINMM.dll => /xp0/WINDOWS/system32/WINMM.dll (0x76b40000) libgcc_s_sjlj-1.dll => /usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll (0x6cec0000) libstdc++-6.dll => /usr/i686-w64-mingw32/sys-root/mingw/bin/libstdc++-6.dll (0x6fc40000) this behaviour has some reproducibility: if i copy the development directory with tar and rebuild, the behaviour represents, whereas if i make a new build directory, copy the sources and the makefile and rebuild, the behaviour vanishes. here is another scenario: i copy an exe unrelated to this project that i have built elsewhere to the instant project development directory. it also quits right off when run and ldd also lists only the 1st two dlls. note that the bash environment and cygwin environment was the same in all cases. if someone has a clear understanding of what is going on here, i am listening. -- http://www.fastmail.fm - Send your email first class