delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/19/10:24:59

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <19990519142939.16570.rocketmail@web121.yahoomail.com>
Date: Wed, 19 May 1999 07:29:39 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: linking with cygwin1.dll
To: Lissette Lemus del Cueto <lissette AT iai DOT csic DOT es>,
cygwin AT sourceware DOT cygnus DOT com
Cc: lissette AT iai DOT csic DOT es
MIME-Version: 1.0

--- Lissette Lemus del Cueto <lissette AT iai DOT csic DOT 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 AT yahoo DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019