Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The error i got from visual studio 2010 is:

"sqlite3.h : fatal error LNK1107: invalid or corrupt file: cannot read at 0x58B93"

My pc is a 32bit pc. i.e X86
Posted
Updated 15-Nov-14 16:05pm
v3
Comments
Richard MacCutchan 16-Nov-14 4:06am    
There is something definitely wrong with what you are doing. The linker should never be looking at a header file. Check your project settings or makefile.
Gbenbam 16-Nov-14 10:17am    
you are perfectly right I specified sqlite3.h instead of sqlite.lib.That was a funny piece of error.It never even imgined that would be the cause.

1 solution

There's not really enough information there for us to say - we don't know where you got your SQLite distribution from, and how you have set up your Visual Studio project - one of the reasons you might get that error is trying to link against a dll or assembly that's not a 'proper' .obj file - this explains it .. http://msdn.microsoft.com/en-us/library/0h6ctxtk.aspx[^]

question - why do you need to recompile sqlite ? (as opposed to use a standard dll/binary supplied from the site)
 
Share this answer
 
Comments
Gbenbam 16-Nov-14 10:19am    
documentation strongly recommended using the amagamated source code.
but i am now usind the dll

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900