Own Compiled Program Immediately Crashes on Startup

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Jul 18 13:13:00 GMT 2007


On Jul 18 13:25, Dave Korn wrote:
> On 18 July 2007 13:16, Hans Streibel wrote:
> 
> >>> $ cygcheck `pwd`/jjove.exe
> >>> C:/cygwin/home/hstreibel/private/src/jove/jove4.16.0.65/jjove.exe
> >>>   C:\cygwin\bin\cygncurses-8.dll
> >>>     C:\cygwin\bin\cygwin1.dll
> >>>       C:\WINDOWS\system32\ADVAPI32.DLL
> >>>         C:\WINDOWS\system32\ntdll.dll
> >>>         C:\WINDOWS\system32\KERNEL32.dll
> >>>         C:\WINDOWS\system32\RPCRT4.dll
> >>> 
> >> It looks pretty odd to me that the only dll the executable is linked
> >> against is the cygncurses one, and that the cygwin dll is only linked as
> >> an indirect dependency of that.
> > 
> > How can this link order be changed so that the cygwin dll
> > is linked in first?
> 
>   Well, for a start, you'd need to link against the cygwin dll directly, and
> it would need to be first on the linker command line.

Dave, you need more coffee.  The above output is nothing unusual.
And since when do you need -lcyginw on the linker comand line at all?

>   Yes, that's how a cygwin executable should look; the first dependency should
> be directly on the cygwin dll.

Try cygcheck /bin/ssh.exe


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/



More information about the Cygwin mailing list