[Expat-bugs] Undefined reference to _WinMain@16

Roy Clemmons roy_clemmons at hotmail.com
Wed Dec 17 20:19:09 EST 2003


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 at 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,



More information about the Expat-bugs mailing list