msql C API with XAMPP?

Alles, was MySQL betrifft, kann hier besprochen werden.

msql C API with XAMPP?

Postby poreko » 09. January 2009 19:06

Hi,Can anyone tell me how to use msql C API with XAMPP?
I am programming an embeddded system in C but I would like to query a database.
poreko
 
Posts: 4
Joined: 09. January 2009 18:56

Re: msql C API with XAMPP?

Postby kleinweby » 09. January 2009 20:46

hello,

Do you really mean msql? msql is not included in XAMPP.

kleinweby
User avatar
kleinweby
AF Moderator
 
Posts: 393
Joined: 03. August 2005 19:52
Location: Magdeburg
XAMPP Version: 1.8.3-2
Operating System: Mac OS X 10.7

Re: msql C API with XAMPP?

Postby poreko » 09. January 2009 21:24

Sorry dude I meant mysql
poreko
 
Posts: 4
Joined: 09. January 2009 18:56

Re: msql C API with XAMPP?

Postby kleinweby » 09. January 2009 21:41

hi,

the mysql C API of XAMPP is nothing special.

You have only to tell the compiler where it find the Headers (-I/opt/lampp/include/ for XAMPP for Linux) and tell the linker where it find the Librarys and which library he should Link (-L/opt/lampp/include/ -lmysql for XAMPP for Linux)

You have to install the XAMPP Dev Package.

kleinweby
User avatar
kleinweby
AF Moderator
 
Posts: 393
Joined: 03. August 2005 19:52
Location: Magdeburg
XAMPP Version: 1.8.3-2
Operating System: Mac OS X 10.7

Re: msql C API with XAMPP?

Postby poreko » 10. January 2009 02:43

Hi
I am using windows, how do I actually add this as a header on the compiler?
Thanks
poreko
 
Posts: 4
Joined: 09. January 2009 18:56

Re: msql C API with XAMPP?

Postby glitzi85 » 10. January 2009 03:17

That's depending on the compiler. Which one are you using?

glitzi
User avatar
glitzi85
 
Posts: 1760
Joined: 05. March 2004 23:26
Location: Dahoim

Re: msql C API with XAMPP?

Postby poreko » 10. January 2009 03:19

Hi
I am using Visual C++ 2008 express edition.
poreko
 
Posts: 4
Joined: 09. January 2009 18:56

Re: msql C API with XAMPP?

Postby glitzi85 » 10. January 2009 03:30

OK, i don't have this edition here at the moment. I found this site in German: http://c3r0.de/2008/07/26/mysql_vs_project_cpp/ with pictures. Also i found this here: http://forums.mysql.com/read.php?45,163 ... msg-163984 but also some messages that this didn't work, so just try it.

glitzi
User avatar
glitzi85
 
Posts: 1760
Joined: 05. March 2004 23:26
Location: Dahoim


Return to MySQL

Who is online

Users browsing this forum: No registered users and 1 guest