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

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.

Did any of you face this problem?

Regards
---
Eric Chiesse
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to