954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

.lib, .dll, .h - How to combine them in project?

Hi all,
I have a question here :)
Suppose I have a library in source code form (Let say mysql++ ) and I have built it, and now I have the files (.h, .lib, .dll). How do I combine them in project? I use code blocks

Why I ask?
Because Python Have done some damage in my thinking ;)
You just do simple stuffs and there you have the whole library to use
Just

import sqlite3


Thanks guys & girls

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

This is for SDL but the principles are more than likely the same for anything you will run across.
http://www.noquarterarcade.com/setting-up-a-codeblocks-project-with-sdl-on-windows
Scroll down about 3/4 of the way to find the heart of it dealing with the search directories for the compiler and linker.
Now that the project has all the proper search directories, include your header and it should search those paths to resolve any symbols during the link.

jonsca
Quantitative Phrenologist
Team Colleague
5,621 posts since Sep 2009
Reputation Points: 1,165
Solved Threads: 581
 

Thanks I'm checking

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

Good guide,
I will use it and repost (I'm away home now)

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: