Am 14.10.2014 um 13:41 schröbte 
[email protected]:
> Hi,

Hi!

> I'm glad that I've started what seems to be an interesting discussion.
> Unfortunately, as I'm no developer, I must admit that I've no clue on how
> to (if I even can) adapt the code with any of the suggestions discussed.

I've uploaded a modified rockspec (and a source rock) to my Github 
account[1]. You can install the modified version by downloading either 
one and running:

     luarocks install luasql-postgres-2.3.0.1-1.rockspec 
PGSQL_DIR="C:\Program Files\PostgreSQL\9.3"

(requires `git` command), or:

     luarocks install luasql-postgres-2.3.0.1-1.src.rock 
PGSQL_DIR="C:\Program Files\PostgreSQL\9.3"

I did _not_ run any test code! I only checked that it compiles on Linux 
using GCC, but if that variable length array was the only problem, it 
should compile with Visual C as well.

That said, if you keep playing with Lua modules, you will sooner or 
later encounter one that intentionally uses C99 features. People are 
getting tired of sticking to a 24 year old standard for Microsoft's 
sake. So you may want to start looking for a better C compiler (MinGW is 
the only one besides Visual C that is supported by LuaRocks on Windows; 
other compilers may require some fiddling) ...

> So, support on next steps would be more than welcome ;¬).
> Cheers,
> Alex
>

Good luck!

Philipp


   [1]: https://github.com/siffiejoe/lua-rockspecs



------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to