linking with cygwin1.dll

Earnie Boyd earnie_boyd@yahoo.com
Mon May 31 21:10:00 GMT 1999


--- Lissette Lemus del Cueto <lissette@iai.csic.es> 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:
> STATUS_ACCESS_VIOLATION
> 

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" < mailto:earnie_boyd@yahoo.com >
CYGWIN RELATED HELP:
 DOCUMENTATION: < http://sourceware.cygnus.com/cygwin/docs.html >
       DLLHELP: < http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ >
ARCHIVE SEARCH: < http://www.delorie.com/archives/ > OR
                < http://www.eGroups.com/list/gnu-win32/ >
_____________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list