On 23 June 2013 18:31, Eric Chiesse <echie...@gmail.com> wrote: > Hi, i was trying to install luasql-postgres on Windows and got the following > problems: > > 1 - Compilation error: > 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 > > I downloaded the rock manually and changed ls_postgres.c so that it uses > dinamic allocation when declaring de variable 'to'.
You may want to send a patch / pull request to the LuaSQL mantainers. > After that this error didn't occur anymore, but then... > > 2 - Link error: > LINK : fatal error LNK1181: cannot open input file 'pq.lib' > > I went to my postgres intallation and indeed there's no pq.lib. After > changing the rockspec to use 'libpq' the rock installed without problems. This can be tweaked in the rockspec, adding a 'platforms' section, but if the above patch is required then maybe it's a good idea to ask for a bugfix release. -- Hisham http://hisham.hm/ ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers