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 » U++ Library support » U++ SQL » MySql basic example
MySql basic example [message #18124] Thu, 11 September 2008 09:55 Go to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello all

Trying to compile the AllForI18n I have got an error. To know the reason I also tried to compile the SQL_MySql basic sample and I have got the same compiling error:

C:\upp\uppsrc\MySql/MySql.h(44) : error C2143: syntax error : missing ';' before '*'

Next is the code in MySql.h:

class MySqlSession : public SqlSession {
public:
	virtual bool           IsOpen() const;
	virtual RunScript      GetRunScript() const             { return &MySqlPerformScript; }
	virtual Vector<String> EnumUsers();
	virtual Vector<String> EnumDatabases();
	virtual Vector<String> EnumTables(String database);

protected:
	virtual SqlConnection *CreateConnection();

private:
	MYSQL *mysql; <<-- Here is the error(line 44)


It seems like MYSQL symbol is not right.

Best regards
Koldo


Best regards
Iñaki
Re: MySql basic example [message #18125 is a reply to message #18124] Thu, 11 September 2008 12:02 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
you have to install MySql development files (headers and libraries) from MySql.
Re: MySql basic example [message #18282 is a reply to message #18125] Sat, 20 September 2008 00:29 Go to previous message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello zsolt

Thank you for your answer. I have installed MySql and tried to compile the sample again but I get errors.
As my only reason for compiling the sample was to compile the AllForI18n project and as it is not necessary to do it to translate Upp... so that's all for now. Thank you again.

Best regards
Koldo


Best regards
Iñaki
Previous Topic: Can not get a double from database
Next Topic: dbaccess via odbc
Goto Forum:
  


Current Time: Fri Apr 19 03:49:06 CEST 2024

Total time taken to generate the page: 0.03260 seconds