[Nut-upsdev] cross-compiling the windows_port branch (winevent.h)

Frédéric Bohé fredericbohe at eaton.com
Thu Nov 18 14:08:23 UTC 2010


On jeu., 2010-11-18 at 08:52 -0500, Charles Lepple wrote:
> On Thu, Nov 4, 2010 at 5:24 AM, Frédéric Bohé <fredericbohe at eaton.com> wrote:
> > It is generated from the winevent.mc file.
> > This is what I do to work with windows event log (Registry edition will
> > be done by an installer in the future. Arnaud is working on automatic
> > winevent.h and winevent.dll generation):
> >
> > Run the following commands :
> >
> > windmc winevent.mc
> > windres winevent.rc winevent.o
> > dllwrap --output-lib=libwinevent.a --dllname=winevent.dll
> > --driver-name=gcc winevent.o
> 
> As a data point, I can't get this newer version of binutils to grok
> that file, either:
> 
> $ i386-win32-windmc winevent.mc
> In winevent.mc at line 1: parser: syntax error.
> In winevent.mc at line 1: fatal: syntax error.
> 
> $ i386-win32-windmc --version
> GNU windmc (GNU Binutils) 2.20.1.20100303

FYI here I have :

$ windmc.exe  --version
GNU windmc (GNU Binutils) 2.20.51.20100613

> 
> (from the i386-win32-binutils package in fink, which might not be
> fully compatible with the mingw-binutils package - I'm just trying to
> find a lower bound on the required version of binutils for
> cross-compiling.)
> 
> I'll try to add some debugging statements to the parser, but it looks
> syntactically correct according to the yacc grammar.
> 


--------------------------------------------------------------------------



More information about the Nut-upsdev mailing list