linking with cygwin1.dll

Earnie Boyd
Mon May 31 21:10:00 GMT 1999

--- Lissette Lemus del Cueto <> wrote:
> Hi,
>  I'm traying to build an .exe using Cygnus B20 release. I could compile
> my code but the program gave me the following runtime error:
>  [main] C\..\mktree.exe 1321(0) handle exceptions: Exception:

Most often caused by illegal reference to memory.  In compiling use the -Wall
switch to get all warnings.  Don't ignore the messages dealing with pointers
they need to be resolved.  Also, don't reference memory location 0, it will
always cause the SIGSEGV error.

>  In FAQ i found that it's possible to add WIN32 API libraries with -l
> option. I've tried -lcygwin -ladvapi32 options but the same thing
> happend. 

There is no need to add -lcygwin if you're linking properly.  Use gcc or c++ as
the front end to the linker as important switches from the specs file will be
passed to the linker.

>  Maybe I need some compile option or some flag for Cygnus? I can't find
> nothing in FAQ.
>  Thanks you in advance

You're Welcome,
"Earnie Boyd" < >
       DLLHELP: < >
                < >
Do You Yahoo!?
Free instant messaging and more at

Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list