Own Compiled Program Immediately Crashes on Startup
Wed Jul 18 11:53:00 GMT 2007
On 18 July 2007 11:53, Hans Streibel wrote:
>>> The package has an explanation on how to compile
>>> jove under cygwin. I followed that explanation and
>>> compiling, linking and installing went fine.
>>> However the resulting program immediately exits when
>>> I try to start it.
>>> I even inserted a printf() statement at the very beginning
>>> of the main() function but its text is not displayed.
>>> Therefore there seems to be something going wrong at the very
>>> beginning of the program.
>> It may be missing a DLL it needs. Run "cygcheck </path/to/your/binary>"
>> and see if the output lists anything missing.
> $ cygcheck `pwd`/jjove.exe
> That looks ok for me...
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. It could certainly be a problem if a cygwin-based dll
gets initialised earlier in the link order than the cygwin dll itself.
I'm going to have to take a guess here: did the instructions tell you to use
"-mno-cygwin" in the compiler flags? I would only expect to see this kind of
output if a non-cygwin (i.e. conventional win32) program had somehow been
linked against a cygwin dll (or a cygwin dll import stub library).
Can't think of a witty .sigline today....
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin