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 #35898 is a reply to message #35882] Sat, 31 March 2012 23:35 Go to previous messageGo to previous message
ffndev is currently offline  ffndev
Messages: 7
Registered: March 2012
Location: Poland
Promising Member
First of all I would like to thank you all for such a great feedback.

Sadly MySQL example still not running.
Biobytes thanks for your hints, but while I'm compiling project from examples I have to set CONSOLE_APP.

I think I have made one step closer, in SQL_MySql example there's a package called MySql which Biobytes mentioned needs to be add to every project that uses MySql. Great. But inside MySql.h in lines:

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

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, but I get errors during linking ;/
I have copied mysqllib.dll to Windows\system32 and even \system.
Compiled using All static\shared\all shared but still nothing.
When I compile as release I get some error which looks like this:
MySql.cpp
C:\Users\fkmd\upp\uppsrc\MySql\MySql.cpp(275) : error C2018: unknown character '0x40'

it's placed here:
if(result) {
--> DDUMP(rows);
int fields = mysql_num_fields(result);

 
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 May 12 21:39:03 CEST 2024

Total time taken to generate the page: 0.02938 seconds