Code::Blocks Forums

User forums => Help => Topic started by: longhairguy on September 10, 2009, 11:38:17 pm

Title: Compiler error
Post by: longhairguy on September 10, 2009, 11:38:17 pm
This error may have nothing to do with my source code, as it does not state a line number for the error:
C:\Program Files\CodeBlocks\MinGW\bin\ld.exe: cannot find -lsqlite3
Okay so it may have a large amount to do with my source code as it's a game server with an SQL database..
Anyone know how I can fix this? I'm not sure if this is a file that I need or just a general error..
I'm using Code::Blocks 8.02
Title: Re: Compiler error
Post by: Seronis on September 11, 2009, 03:21:53 am
Its not a compiling or code problem.  Its a linker problem.   ld.exe  is a linker and   'cannot find -lsqlite3'  means that it cant find a library named sqlite3 of the formats   lib<name>.a    or   <name>.lib.

Make sure your linker search paths include the location of the needed lib file.