building psycopg2 on windows using mingw, "cannot find -lpq"
Diez B. Roggisch
deets at nospam.web.de
Mon Jan 21 12:08:42 EST 2008
GHUM wrote:
> The compile works, BUT linking fails:
>
> 2.5\Release\psycopg\_psycopg.def -Lc:\python25\libs -Lc:
> \python25\PCBuild -Lc:/p
> ostgres/83RC2/lib -lpython25 -lpq -lws2_32 -ladvapi32 -o build
> \lib.win32-2.5\psy
> copg2\_psycopg.pyd
> c:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
> cannot find -lpq
> collect2: ld returned 1 exit status
> error: command 'gcc' failed with exit status 1
>
> if I google for the error
>
> "ld.exe: cannot find -lpq"
>
> there is allways the information that the lib-dir of libpq is missing;
> but :
>
> -Lc:/postgres/83RC2/lib
>
> is clearly in the commandline, and within c:/postgres/83RC2/lib
> there is one libqp.lib
>
> What am I missing? any hints?
Are you sure using forward slashes in the path works here?
Diez
More information about the Python-list
mailing list