News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

MySQL header and libraries location

Started by iceman42, April 19, 2006, 07:22:19 PM

Previous topic - Next topic

iceman42

I am new to C++ and CodeBlocks, I was wondering where I can get the MySQL header files, the ones I have keep throwing errors when I try to compile, and where do I get the libraries from.  This is for Windose.

sethjackson

Quote from: iceman42 on April 19, 2006, 07:22:19 PM
I am new to C++ and CodeBlocks, I was wondering where I can get the MySQL header files, the ones I have keep throwing errors when I try to compile, and where do I get the libraries from.  This is for Windose.

http://dev.mysql.com/downloads/mysql/5.0.html

?

iceman42

So I would just grab the headers and library download even if its for Redhat?

sethjackson

Yea. You need the MySQL libs too though.

severach

Method 1: (depreciated)

Buy Visual Studio, download the MySQL sources, and compile the mysqllib project. MSVC will automatically compile several other dependant projects. Extract the libs and the include folder.

Method 2:

Pay attention during your Win32-binary install. There's a checkbox that is off by default which will install the necessary libs and includes.

By the way, plan on using a Microsoft compiler such as MSVT for MySQL development.

bluekid

What is blue ? Blue is the invisible becoming visible.