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
Re: MySQL example compile issue [message #35902 is a reply to message #35898] Sun, 01 April 2012 16:02 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 527
Registered: March 2007
Contributor
Quote:


there is this "#include <MySql\MySql.h>" this supposed to include file from MySql Serever\include directory, right?But inside include\mysql there's no mysql.h it's one level higher.
When I changed
#include <MySql\MySql.h>
to
#include <MySql.h>
in MySql\Mysql.h (I think it's UPP namespace) everything compiles great,



That probably means you didn't set the include path correct in Build Method settings. (Should be one level up). But as long as it compiles after you remove the MySql\ part, you can leave it as it is for now.


Quote:


but I get errors during linking ;/


That's most likely because you didn't set your link (library) path correctly. Look for no where else other than mentioned in above posts. eg.

Quote:


In Tab "Lib directories": ..\MySql Server\lib



If you link successfully, but cannot run, that could be resulted from inappropriately set executable path, or wrong version of library, etc.
 
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: Mon May 13 12:22:42 CEST 2024

Total time taken to generate the page: 0.01813 seconds