lundi 5 janvier 2015

Linker Error 1107 during compilation of sqlite with Visual C++ 2013

I'm trying to build sqlite myself with Visual C++ 2013. The tutorial from the sqlite site seems pretty easy: http://ift.tt/1xvLEJQ


So i downloaded the amalgamation source-package and tried to build the sqlite3.exe with the following command:



cl.exe /I"E:\VC\include" /I"E:\VC\VC\include" shell.c sqlite3.c -Fesqlite3.exe


The compilation completed successfully. The shell.obj and the sqlite3.obj got builded. But the linking fails with the following error:



link.exe


/out:sqlite3.exe


shell.obj


sqlite3.obj


link.exe : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2C0.



So i tried serveral things but every time i got this error when i try to link. The same behavior if i only try to build the sqlite3.dll.


I would be very glad for every hint for this error.


Aucun commentaire:

Enregistrer un commentaire