Re: Undefined reference to _WinMain@16

"Roy Clemmons" <[email protected]>
Newsgroups gmane.text.xml.expat.bugs
Message-ID <[email protected]>
I fixed this problem by adding a dummy winmain to xmlparse.c

int __declspec(nothrow) __stdcall WinMain(int a, int b, char* c, int
d);
int __declspec(nothrow) __stdcall WinMain(int a, int b, char* c, int
d)
{
    return 0;
}

Don't know the repercussions - if any.

Roy

> > Greetings,
> >
> > After downloading expat-1.95.7.tar.gz from sSourceForge and
executing
> > /configure (per the README, however I did not
> > execute./buildconf.sh ), I am receiving the following error when
> > attempting to make the expat library under the cygwin 1.5.5-1
> > environment:
> >
> > undefined reference to `_WinMain@16'
> >
> > The same error reported to the cygwin email list resulted in a
reply
> > that suggested that this error might be caused because of a
missing
> > main() in the source code.
> >
> > My OS is Windows 2000 SP 4
> >
> > What can I do to resolve this issue?
> >
> > Thank you,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.