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 Reply-To: earnie_boyd AT yahoo DOT com Subject: Re: linking with cygwin1.dll To: Lissette Lemus del Cueto , cygwin AT sourceware DOT cygnus DOT com Cc: lissette AT iai DOT csic DOT es MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- 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: > 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" CYGWIN RELATED HELP: DOCUMENTATION: DLLHELP: ARCHIVE SEARCH: OR _____________________________________________________________ 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