Author Topic: Compiler error  (Read 3575 times)

longhairguy

  • Guest
Compiler error
« 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
« Last Edit: September 10, 2009, 11:43:50 pm by longhairguy »

Offline Seronis

  • Almost regular
  • **
  • Posts: 197
Re: Compiler error
« Reply #1 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.