Thanks a lot!! As you say, I have 2 cygwin1.dll in my PC. When I deleted one in C:\..\SYSTEM ,then
$ cygcheck `gcc -print-prog-name=cc1` D:\cygwin/lib\gcc/i686-pc-cygwin/3.4.4/cc1.exe D:\cygwin\bin\cygwin1.dll C:\WINDOWS\system32\ADVAPI32.DLL C:\WINDOWS\system32\ntdll.dll C:\WINDOWS\system32\KERNEL32.dll C:\WINDOWS\system32\RPCRT4.dll C:\WINDOWS\system32\Secur32.dll D:\cygwin\bin\cygiconv-2.dll D:\cygwin\bin\cygintl-3.dll And gcc&g++ run! $ gcc hello.c $ ./a Hello World! Thanks for DaveK,Brian and everyone. sugitakukun Brian Dessent wrote: > > sugitakukun wrote: > >> $ cygcheck `gcc -print-prog-name=cc1` >> D:\cygwin/lib\gcc/i686-pc-cygwin/3.4.4/cc1.exe >> C:\WINDOWS\SYSTEM\cygwin1.dll >> C:\WINDOWS\system32\ADVAPI32.DLL >> C:\WINDOWS\system32\ntdll.dll >> C:\WINDOWS\system32\KERNEL32.dll >> C:\WINDOWS\system32\RPCRT4.dll >> C:\WINDOWS\system32\Secur32.dll >> D:\cygwin\bin\cygiconv-2.dll >> D:\cygwin\bin\cygintl-3.dll > > That looks like you have a multiple Cygwin DLL problem. It is finding > Cygwin1.dll in C:\Windows\System but it looks like you installed Cygwin > in D:\Cygwin. This usually means you've installed some other software > from a third party that uses Cygwin under the hood, and they have > decided to pollute your system by putting their Cygwin1.Dll in the > system dir. You get to clean up the mess. > > If you can't figure it out, post the cygcheck output as requested in > <http://cygwin.com/problems.html>. > > Brian > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > > -- View this message in context: http://www.nabble.com/configure%3A2090%3A-error%3A-C-compiler-cannot-create-executables-tp18345234p18352034.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/