This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Access Violation


All I get is undefined errors.


-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
Of Roy Clemmons
Sent: Tuesday, December 23, 2003 9:58 PM
To: cygwin@cygwin.com
Subject: Access Violation


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/




--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]