[python-sqlite] Compiling pysqlite against sqlite3.dll

81 views
Skip to first unread message

ggray

unread,
Jun 2, 2010, 10:44:03 AM6/2/10
to python-sqlite
Hi folks, i have a question!, i'm triying to build in a static way
pysqlite against my own and modified sqlite3.dll file without success,
here is my command

python setup.py build_static --force


and here it's the error

Creating library build\temp.win32-2.6\Release\src\_sqlite.lib and
object buil
d\temp.win32-2.6\Release\src\_sqlite.exp
connection.obj : error LNK2019: unresolved external symbol
_sqlite3_key referenc
ed in function _pysqlite_connection_init
sqlite3.obj : error LNK2001: unresolved external symbol _sqlite3_key
sqlite3.obj : error LNK2019: unresolved external symbol
_sqlite3CodecGetKey refe
renced in function _sqlite3RunVacuum
sqlite3.obj : error LNK2019: unresolved external symbol
_sqlite3CodecAttach refe
renced in function _attachFunc
sqlite3.obj : error LNK2019: unresolved external symbol
_sqlite3_activate_see re
ferenced in function _sqlite3Pragma
sqlite3.obj : error LNK2019: unresolved external symbol _sqlite3_rekey
reference
d in function _sqlite3Pragma
build\lib.win32-2.6\pysqlite2\_sqlite.pyd : fatal error LNK1120: 5
unresolved ex
ternals
error: command '"c:\Archivos de programa\Microsoft Visual Studio 9.0\VC
\BIN\link
.exe"' failed with exit status 1120

PS: My new methods are properly defined in the .h files, can anyone
help me with this ??

Roger Binns

unread,
Jun 2, 2010, 12:39:59 PM6/2/10
to python...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/02/2010 07:44 AM, ggray wrote:
> Hi folks, i have a question!, i'm triying to build in a static way
> pysqlite against my own and modified sqlite3.dll file without success,
> here is my command

Those are contradictory statements. build_static uses the SQLite
amalgamation source code whereas a dll is a shared library.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwGiVsACgkQmOOfHg372QTY7gCfYPhiitR8WlqULZbAukkLesko
31kAoN4OZRuthkQl65BWJoWxaajrpJAj
=fz/a
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages