Windows中的psycopg2链接错误

2024-10-02 10:32:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我只是用visualstudio在Windows中构建psycopg2模块。 我已经安装了VisualStudioforPython2.7。 编译后,我得到以下链接错误:

Creating library build\temp.win32-2.7\Release\psycopg\_psycopg.lib and    
object build\temp.win32-2.7\Release\psycopg\
_psycopg.exp
pqpath.obj : error LNK2019: unresolved external symbol _PQclear  
referenced in function _pq_raise
connection_int.obj : error LNK2001: unresolved external symbol _PQclear
cursor_type.obj : error LNK2001: unresolved external symbol _PQclear
error_type.obj : error LNK2001: unresolved external symbol _PQclear
pqpath.obj : error LNK2019: unresolved external symbol _PQerrorMessage   
referenced in function _pq_raise
connection_int.obj : error LNK2001: unresolved external symbol   
_PQerrorMessage

有人能指导我们如何用visualstudio在windows中构建psycopg2和pcrypto模块吗?在

提前谢谢。在


Tags: 模块buildobjreleaseerrorsymboltemppsycopg2

热门问题