Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » MySQL example compile issue
MySQL example compile issue [message #35882] Fri, 30 March 2012 23:55 Go to previous message
ffndev is currently offline  ffndev
Messages: 7
Registered: March 2012
Location: Poland
Promising Member
Hello.
I'm trying to compile MySql example from examples provided with U++ and I have the same problem as it was mentioned here:
http://www.ultimatepp.org/forum/index.php?t=msg&goto=181 24&&srch=mysql+example#msg_18124

So far for me it looks like I'm not including the correct mysql.h file. The one that is included is that from U++ and I need the one from MySql server include folder.

Sadly I don't know how to force U++ to use other mysql.h.
While looking in sources in example it looks like MySql.cpp is including mysql.h which includes itself(?), here's code:

#ifdef PLATFORM_WIN32
#ifndef IPPROTO_IP
#include <winsock2.h>
#endif
#include <MySql\MySql.h>
#endif

#ifdef PLATFORM_POSIX
#include <mysql/mysql.h>
#endif

I'm a bit confused, I know i did something wrong, but I can't find out what?

Thank you for your attention Smile
Cheers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Parsing xml..
Next Topic: Moving to Linux dev from Win
Goto Forum:
  


Current Time: Sun Apr 28 18:23:27 CEST 2024

Total time taken to generate the page: 0.10415 seconds