delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/23/22:56:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Originating-IP: [216.40.209.69]
X-Originating-Email: [roy_clemmons AT hotmail DOT com]
X-Sender: roy_clemmons AT hotmail DOT com
From: "Roy Clemmons" <roy_clemmons AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Access Violation
Date: Tue, 23 Dec 2003 21:57:35 -0600
MIME-Version: 1.0
Message-ID: <Law12-OE53L2DhoKFKB00011b97@hotmail.com>
X-OriginalArrivalTime: 24 Dec 2003 03:56:42.0336 (UTC) FILETIME=[F0E47E00:01C3C9D1]

Greetings,

I have installed expat-1.95.7 into Cygwin 1.5.5-1 using the Cygwin
setup utility.

In /usr/lib I have:

libexpat.a
libexpat.dll.a
libexpat.la

and in /usr/bin, I have cygexpat-0.dll.

When I compile and link the following program, I get a segmentation
fault.  What am I doing wrong...could expat be installed incorrectly?

Note: I did not make expat. I simply installed it from the Cygwin
setup utility.

gcc -o test test.cc -lexpat

#include <stdio.h>
#include <expat.h>

int main()
{
        XML_ParserCreate(NULL);
        return 0;
}

Exception: STATUS_ACCESS_VIOLATION at eip=00000000
eax=00000000 ebx=00000004 ecx=610CB16C edx=00000002 esi=00000000
edi=00000000
ebp=0022FE98 esp=0022FE7C program=C:\cygwin\expat\test.exe
cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
Stack trace:
Frame     Function  Args
End of stack trace

Thank you,

Royc

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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