User forums > Help

Sqlite installation into Code::Blocks

<< < (2/4) > >>

MortenMacFly:

--- Quote from: Guillaume on May 23, 2006, 10:19:15 pm ---I have linked "tclsqlite3.dll" in my project (Build options > Linker options), but I have the same error message : "ld.exe cannot find ltclsqlite3.dll"

--- End quote ---
You cannot link a DLL. "DLL" stands for dynamic link library so they are loaded at run-time. What you want is a static library which you have to build first. So I guess you need to build SQLlite first. What do yopu have from SQLlite? If it's only the DLL than it's not enough anyway for development...?!
With regards, Morten.
BTW: Did you notice that this thread is over a year old?

MortenMacFly:

--- Quote from: killerbot on May 23, 2006, 10:24:24 pm ---you need to link with the import library not the dll itself

--- End quote ---
...half a minute faster that I... ;-)

takeshimiya:

--- Quote from: MortenMacFly on May 23, 2006, 10:25:02 pm ---
--- Quote from: Guillaume on May 23, 2006, 10:19:15 pm ---I have linked "tclsqlite3.dll" in my project (Build options > Linker options), but I have the same error message : "ld.exe cannot find ltclsqlite3.dll"

--- End quote ---
You cannot link a DLL. "DLL" stands for dynamic link library so they are loaded at run-time. What you want is a static library which you have to build first. So I guess you need to build SQLlite first. What do yopu have from SQLlite? If it's only the DLL than it's not enough anyway for development...?!

--- End quote ---

Just something: MingW's linker (ld) can link directly to a .dll that was built by it (just like on linux with gcc(ld)). This way of linking is faster too. So you'll not need any .lib.
See here for a real world example in C::B.

Ceniza:
You can link with DLLs (for many cases MinGW can do it), but that'sn't the idea (Takeshi was faster).

About your problem: you need to link with libsqlite3.a (just add sqlite3 to the link libraries). Be sure you have the library in the first place and it can be found through the linker directories (it's also in the build options).

If you cannot find that library in the package you downloaded, read more carefully in the SQLite site which one has it, download it and try again.

Guillaume:
Wow !
Thank you for these quick answers

I'm going to try your suggestions
I didn't found some files with .a or .lib, I have downloaded a lot of packages from sqlite.org, but I will search again


--- Quote from: MortenMacFly on May 23, 2006, 10:25:02 pm ---BTW: Did you notice that this thread is over a year old?

--- End quote ---
Yes, I have seen the date, and the message above the answer form, but it was the same problem than me and it was not resolved... so I have supposed that it was the good place...
It's at least a proof that I have used the search tool of this forum ;)

And please excuse my poor english, I'm a French user

Thank you for your help

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version