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

Charles Lepple clepple at gmail.com
Thu Nov 18 13:52:40 UTC 2010


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

(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.

-- 
- Charles Lepple



More information about the Nut-upsdev mailing list