On Mar 22, 4:21 pm, John Wiegley <[email protected]> wrote:
>
> How about at the top of value.h you just add this:
>
> #if defined(VOID)
> #undef VOID
> #endif
>
> Does that work?  If so, I can check that in.
>
> John

Yeah, that does work. Then mingw doesn't have setenv:

make[2]: Entering directory `/c/qprojects/compile-ledger/ledger'
  CXX    libledger_report_la-stats.lo
In file included from src/stats.cc:38:0:
src/report.h: In constructor
'ledger::report_t::pager_option_t::pager_option_t()
':
src/report.h:788:3: error: 'setenv' was not declared in this scope
make[2]: *** [libledger_report_la-stats.lo] Error 1

If I patch that to use putenv, things go on until libtool fails to
link libledger_report.la:

  CXXLD  libledger_report.la
libtool: link: warning: undefined symbols not allowed in i686-pc-
mingw32 shared
libraries
./libtool: line 1111: lib: command not found
make[2]: *** [libledger_report.la] Error 127

I think libtool is emitting MSVC commands there, but that's as far as
I have gotten with it.

More broadly, I wonder if this 'should' work? I guess in the sense, do
you expect that minimal changes should be enough to successfully
compile with mingw32?


Max

Reply via email to