Hi! Am 10.10.2014 um 16:51 schröbte alexandre.bertr...@tudor.lu: > > ls_postgres.c > src/ls_postgres.c(374) : error C2057: expected constant expression > src/ls_postgres.c(374) : error C2466: cannot allocate an array of constant > size > 0 > src/ls_postgres.c(374) : error C2133: 'to' : unknown size > > Error: Build error: Failed compiling object src/ls_postgres.obj
That actually seems to be a bug in luasql.postgres. The offending line is definitely not C90, and I'm not sure it's valid C99 either (possibly a GNU-extension; I will have a closer look at the standard). Anyway, you should file a bug report (or provide a pull request) here[1]. The obvious fix would be to allocate a temporary buffer using `lua_newuserdata` instead of using the variable length array. > > Thanks for the support. > Cheers, > Alex > Philipp [1]: https://github.com/keplerproject/luasql ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers