The C program compiled by cygwin cannot be run. When you break down the file name in the command line, the program with no sound will return to the depressing state. Add the-G option and use GDB to load the file. The following error occurs:
GDB: unknown target exception 0 xcxxxxxxx at 0xxxxxxxxxx.
First, check the DLL that the program depends on.
$ Cygcheck.exe./a.exe
D:/tcplex/libssh2/a.exe
C:/cygwin/bin/cygwin1.dll
C:/Windows/system32/advapi32.dll
C:/Windows/system32/kernel32.dll
C:/Windows/system32/NTDLL. dll
C:/Windows/system32/rpcrt4.dll
C:/Windows/system32/secur32.dll
C:/cygwin/bin/cygssh2-1.dll
C:/cygwin/bin/cyggcc_s-1.dll
C:/cygwin/bin/cygcrypto-0.9.8.dll
C:/cygwin/bin/cygz. dll
C:/cygwin/bin/cystdc ++-6.dll
> GDB./a.exe
(GDB) DLL cygwin1.dll
(GDB) break * & 'dll: init'
Breakpoint 1 at 0x61010270
(GDB) Run
Still prompt: unknown target exception
So it is suspected that cygwin1.dll has a problem. I have recently updated cygwin using the new version of setup.exe. Is there a problem with updating the program?
Run cygwin setup.exe again and set base-cygwin reinstall. Solve the problem!
Still cannot solve the problem ?? Please refer to this document: http://www.nsnam.org/docs/linker-problems.doc