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 error
mysql error [message #5342] Thu, 14 September 2006 22:00 Go to next message
manuel is currently offline  manuel
Messages: 6
Registered: September 2006
Location: Germany
Promising Member
Hi

I tried to compile the SQL_MySql Example. But it didn`t work. Here are the Error-Messages

----- MySql ( MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (1 / 5)
MySql.cpp
----- Sql ( MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (2 / 5)
----- plugin\z ( MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (3 / 5)
----- Core ( MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (4 / 5)
----- SQL_MySql ( MT MAIN GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (5 / 5)
main.cpp
In file included from C:\upp\reference\SQL_MySql\main.cpp:1:
C:/upp/uppsrc/MySql/MySql.h:12:19: MySql.h: No such file or directory
In file included from C:\upp\reference\SQL_MySql\main.cpp:1:
C:/upp/uppsrc/MySql/MySql.h:43: error: ISO C++ forbids declaration of `MYSQL' with no type
C:/upp/uppsrc/MySql/MySql.h:43: error: expected `;' before '*' token
C:/upp/uppsrc/MySql/MySql.h:55: error: `MYSQL' has not been declared
C:/upp/uppsrc/MySql/MySql.h:49: error: `MYSQL_PORT' was not declared in this scope
C:/upp/uppsrc/MySql/MySql.h: In constructor `MySqlSession::MySqlSession()':
C:/upp/uppsrc/MySql/MySql.h:61: error: `mysql' undeclared (first use this function)
C:/upp/uppsrc/MySql/MySql.h:61: error: (Each undeclared identifier is reported only once for each function it appears in.)
SQL_MySql: 1 file(s) built in (0:01.77), 1777 msecs / file, duration = 3656 msecs, parallelization 100%
In file included from C:\upp\uppsrc\MySql\MySql.cpp:1:
C:\upp\uppsrc\MySql\/MySql.h:12:19: MySql.h: No such file or directory
In file included from C:\upp\uppsrc\MySql\MySql.cpp:1:
C:\upp\uppsrc\MySql\/MySql.h:43: error: ISO C++ forbids declaration of `MYSQL' with no type
C:\upp\uppsrc\MySql\/MySql.h:43: error: expected `;' before '*' token
C:\upp\uppsrc\MySql\/MySql.h:55: error: `MYSQL' has not been declared
C:\upp\uppsrc\MySql\/MySql.h:49: error: `MYSQL_PORT' was not declared in this scope
C:\upp\uppsrc\MySql\/MySql.h: In constructor `MySqlSession::MySqlSession()':
C:\upp\uppsrc\MySql\/MySql.h:61: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\/MySql.h:61: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:\upp\uppsrc\MySql\MySql.cpp: At global scope:
C:\upp\uppsrc\MySql\MySql.cpp:19: error: ISO C++ forbids declaration of `MYSQL' with no type
C:\upp\uppsrc\MySql\MySql.cpp:19: error: expected `;' before '*' token
C:\upp\uppsrc\MySql\MySql.cpp:21: error: ISO C++ forbids declaration of `MYSQL_RES' with no type
C:\upp\uppsrc\MySql\MySql.cpp:21: error: expected `;' before '*' token
C:\upp\uppsrc\MySql\MySql.cpp:22: error: `MYSQL_ROW' does not name a type
C:\upp\uppsrc\MySql\MySql.cpp:31: error: `MYSQL' has not been declared
C:\upp\uppsrc\MySql\MySql.cpp:31: error: ISO C++ forbids declaration of `mysql' with no type
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual bool MySqlSession::IsOpen() const':
C:\upp\uppsrc\MySql\MySql.cpp:35: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `bool MySqlSession::Connect(const char*, const char*, const char*, const char*, int, const char*)':
C:\upp\uppsrc\MySql\MySql.cpp:43: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:43: error: `MYSQL' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:43: error: expected primary-expression before ')' token
C:\upp\uppsrc\MySql\MySql.cpp:43: error: `mysql_init' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:46: error: `mysql_real_connect' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `bool MySqlSession::Open(const char*)':
C:\upp\uppsrc\MySql\MySql.cpp:64: error: `MYSQL_PORT' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `void MySqlSession::Close()':
C:\upp\uppsrc\MySql\MySql.cpp:103: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:104: error: `mysql_close' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual void MySqlSession::Begin()':
C:\upp\uppsrc\MySql\MySql.cpp:114: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:114: error: `mysql_query' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:115: error: `mysql_error' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual void MySqlSession::Commit()':
C:\upp\uppsrc\MySql\MySql.cpp:123: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:123: error: `mysql_query' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:124: error: `mysql_error' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual void MySqlSession::Rollback()':
C:\upp\uppsrc\MySql\MySql.cpp:132: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:132: error: `mysql_query' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:133: error: `mysql_error' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual SqlConnection* MySqlSession::CreateConnection()':
C:\upp\uppsrc\MySql\MySql.cpp:173: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: At global scope:
C:\upp\uppsrc\MySql\MySql.cpp:176: error: `MYSQL' has not been declared
C:\upp\uppsrc\MySql\MySql.cpp:177: error: ISO C++ forbids declaration of `mysql' with no type
C:\upp\uppsrc\MySql\MySql.cpp: In constructor `MySqlConnection::MySqlConnection(MySqlSession&, int*)':
C:\upp\uppsrc\MySql\MySql.cpp:177: error: class `MySqlConnection' does not have any field named `mysql'
C:\upp\uppsrc\MySql\MySql.cpp:178: error: `result' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual void MySqlConnection::SetParam(int, const Value&)':
C:\upp\uppsrc\MySql\MySql.cpp:194: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:194: error: `mysql_real_escape_string' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual bool MySqlConnection::Execute()':
C:\upp\uppsrc\MySql\MySql.cpp:241: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:241: error: `mysql_query' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:242: error: `mysql_error' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:245: error: `result' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:245: error: `mysql_store_result' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:252: error: `mysql_affected_rows' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:253: error: `mysql_num_fields' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:256: error: `MYSQL_FIELD' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:256: error: `field' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:256: error: `mysql_fetch_field_direct' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:260: error: `FIELD_TYPE_TINY' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:261: error: `FIELD_TYPE_SHORT' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:262: error: `FIELD_TYPE_LONG' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:263: error: `FIELD_TYPE_INT24' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:266: error: `FIELD_TYPE_LONGLONG' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:267: error: `FIELD_TYPE_DECIMAL' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:268: error: `FIELD_TYPE_FLOAT' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:269: error: `FIELD_TYPE_DOUBLE' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:272: error: `FIELD_TYPE_DATE' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:275: error: `FIELD_TYPE_DATETIME' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:286: error: `mysql_insert_id' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual bool MySqlConnection::Fetch()':
C:\upp\uppsrc\MySql\MySql.cpp:303: error: `result' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:304: error: `row' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:304: error: `mysql_fetch_row' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:306: error: `mysql_fetch_lengths' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual void MySqlConnection::GetColumn(int, Ref) const':
C:\upp\uppsrc\MySql\MySql.cpp:331: error: `row' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `void MySqlConnection::FreeResult()':
C:\upp\uppsrc\MySql\MySql.cpp:362: error: `result' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:363: error: `mysql_free_result' undeclared (first use this function)
MySql: 1 file(s) built in (0:02.31), 2316 msecs / file, duration = 6265 msecs, parallelization 90%

There were errors. (0:06.31)


Can Some one help me? What must i do that it works

Thanks

Re: mysql error [message #5343 is a reply to message #5342] Thu, 14 September 2006 23:09 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Sorry, this is already fixed name clash bug of last dev version.

If you want quick fix, go to Sql/SqlExp.h, change MYSQL to MY_SQL, compile - compiler will report undefined MYSQL Sql package, replace them with MY_SQL. Then it should work.
Re: mysql error [message #5344 is a reply to message #5343] Fri, 15 September 2006 11:58 Go to previous messageGo to next message
manuel is currently offline  manuel
Messages: 6
Registered: September 2006
Location: Germany
Promising Member
I can`t find MYSQL in Sql/SqlExp.h

What else can i do that it works??
Re: mysql error [message #5345 is a reply to message #5344] Fri, 15 September 2006 13:48 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
There should be

enum {
	ORACLE    = 1,
	SQLITE3   = 2,
	MYSQL    = 4,
	MSSQL     = 8,
	POSTGRESS = 16, // not implemented yet
	FIREBIRD  = 32, // not implemented yet
	DB2       = 64, // not implemented yet
};


At the beginning of Sqlexp.h.

But you might be trying some other version perhaps (and the problem is something else). Which version?

Mirek

[Updated on: Fri, 15 September 2006 13:49]

Report message to a moderator

Re: mysql error [message #5346 is a reply to message #5345] Fri, 15 September 2006 14:00 Go to previous messageGo to next message
manuel is currently offline  manuel
Messages: 6
Registered: September 2006
Location: Germany
Promising Member
i can`t find it. I have the version 605
Re: mysql error [message #5379 is a reply to message #5342] Sun, 17 September 2006 15:11 Go to previous messageGo to next message
manuel is currently offline  manuel
Messages: 6
Registered: September 2006
Location: Germany
Promising Member
i have the following error: i had compile it with minGW and i have the Version 609

----- MySql ( MT MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (1 / 5)
----- Sql ( MT MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (2 / 5)
----- plugin\z ( MT MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (3 / 5)
----- Core ( MT MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (4 / 5)
----- SQL_MySql ( MT MAIN MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (5 / 5)
MySql.cpp
c:\upp\uppsrc\mysql\MySql.h(12) : fatal error C1083: Datei (Include) kann nicht geffnet werden: "MySql.h": No such file or directory
MySql: 1 file(s) built in (0:00.44), 445 msecs / file, duration = 859 msecs, parallelization 93%
C:\upp\uppsrc\MySql/MySql.h(12) : fatal error C1083: Datei (Include) kann nicht geffnet werden: "MySql.h": No such file or directory
main.cpp
SQL_MySql: 1 file(s) built in (0:00.43), 437 msecs / file, duration = 828 msecs, parallelization 93%

There were errors. (0:00.95)


can some one help me? How can i connect to mysql with Ultimate++?
Re: mysql error [message #5384 is a reply to message #5379] Mon, 18 September 2006 00:08 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
This looks like MSC8 compile.

Anyway, this looks like MySql.h is not in the include path. You can add it in the Build method.
Re: mysql error [message #5385 is a reply to message #5342] Mon, 18 September 2006 11:21 Go to previous messageGo to next message
manuel is currently offline  manuel
Messages: 6
Registered: September 2006
Location: Germany
Promising Member
i have tried to compile the SQL_MYsql Example, but it didn`t work. I tried to compile it with the MINGW Compiler and i have
the following errors,

----- MySql ( MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (1 / 5)
MySql.cpp
----- Sql ( MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (2 / 5)
BLITZ: Sqlexp.cpp Sql.cpp SqlSchema.cpp util_td.cpp
----- plugin\z ( MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (3 / 5)
zlibupp.cpp
In file included from C:\upp\uppsrc\MySql\MySql.cpp:1:
C:\upp\uppsrc\MySql\/MySql.h:12:19: MySql.h: No such file or directory
In file included from C:\upp\uppsrc\MySql\MySql.cpp:1:
C:\upp\uppsrc\MySql\/MySql.h:43: error: ISO C++ forbids declaration of `MYSQL' with no type
C:\upp\uppsrc\MySql\/MySql.h:43: error: expected `;' before '*' token
C:\upp\uppsrc\MySql\/MySql.h:55: error: `MYSQL' has not been declared
C:\upp\uppsrc\MySql\/MySql.h:49: error: `MYSQL_PORT' was not declared in this scope
C:\upp\uppsrc\MySql\/MySql.h: In constructor `MySqlSession::MySqlSession()':
C:\upp\uppsrc\MySql\/MySql.h:61: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\/MySql.h:61: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:\upp\uppsrc\MySql\MySql.cpp: At global scope:
C:\upp\uppsrc\MySql\MySql.cpp:20: error: ISO C++ forbids declaration of `MYSQL' with no type
C:\upp\uppsrc\MySql\MySql.cpp:20: error: expected `;' before '*' token
C:\upp\uppsrc\MySql\MySql.cpp:22: error: ISO C++ forbids declaration of `MYSQL_RES' with no type
C:\upp\uppsrc\MySql\MySql.cpp:22: error: expected `;' before '*' token
C:\upp\uppsrc\MySql\MySql.cpp:23: error: `MYSQL_ROW' does not name a type
C:\upp\uppsrc\MySql\MySql.cpp:32: error: `MYSQL' has not been declared
C:\upp\uppsrc\MySql\MySql.cpp:32: error: ISO C++ forbids declaration of `mysql' with no type
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual bool MySqlSession::IsOpen() const':
C:\upp\uppsrc\MySql\MySql.cpp:36: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `bool MySqlSession::Connect(const char*, const char*, const char*, const char*, int, const char*)':
C:\upp\uppsrc\MySql\MySql.cpp:44: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:44: error: `MYSQL' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:44: error: expected primary-expression before ')' token
C:\upp\uppsrc\MySql\MySql.cpp:44: error: `mysql_init' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:47: error: `mysql_real_connect' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `bool MySqlSession::Open(const char*)':
C:\upp\uppsrc\MySql\MySql.cpp:65: error: `MYSQL_PORT' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `void MySqlSession::Close()':
C:\upp\uppsrc\MySql\MySql.cpp:104: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:105: error: `mysql_close' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual void MySqlSession::Begin()':
C:\upp\uppsrc\MySql\MySql.cpp:115: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:115: error: `mysql_query' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:116: error: `mysql_error' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual void MySqlSession::Commit()':
C:\upp\uppsrc\MySql\MySql.cpp:124: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:124: error: `mysql_query' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:125: error: `mysql_error' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual void MySqlSession::Rollback()':
C:\upp\uppsrc\MySql\MySql.cpp:133: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:133: error: `mysql_query' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:134: error: `mysql_error' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual SqlConnection* MySqlSession::CreateConnection()':
C:\upp\uppsrc\MySql\MySql.cpp:174: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: At global scope:
C:\upp\uppsrc\MySql\MySql.cpp:177: error: `MYSQL' has not been declared
C:\upp\uppsrc\MySql\MySql.cpp:178: error: ISO C++ forbids declaration of `mysql' with no type
C:\upp\uppsrc\MySql\MySql.cpp: In constructor `MySqlConnection::MySqlConnection(MySqlSession&, int*)':
C:\upp\uppsrc\MySql\MySql.cpp:178: error: class `MySqlConnection' does not have any field named `mysql'
C:\upp\uppsrc\MySql\MySql.cpp:179: error: `result' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual void MySqlConnection::SetParam(int, const Value&)':
C:\upp\uppsrc\MySql\MySql.cpp:195: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:195: error: `mysql_real_escape_string' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual bool MySqlConnection::Execute()':
C:\upp\uppsrc\MySql\MySql.cpp:243: error: `mysql' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:243: error: `mysql_query' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:244: error: `mysql_error' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:247: error: `result' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:247: error: `mysql_store_result' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:254: error: `mysql_affected_rows' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:255: error: `mysql_num_fields' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:258: error: `MYSQL_FIELD' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:258: error: `field' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:258: error: `mysql_fetch_field_direct' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:262: error: `FIELD_TYPE_TINY' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:263: error: `FIELD_TYPE_SHORT' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:264: error: `FIELD_TYPE_LONG' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:265: error: `FIELD_TYPE_INT24' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:268: error: `FIELD_TYPE_LONGLONG' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:269: error: `FIELD_TYPE_DECIMAL' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:270: error: `FIELD_TYPE_FLOAT' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:271: error: `FIELD_TYPE_DOUBLE' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:274: error: `FIELD_TYPE_DATE' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:277: error: `FIELD_TYPE_DATETIME' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:288: error: `mysql_insert_id' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual bool MySqlConnection::Fetch()':
C:\upp\uppsrc\MySql\MySql.cpp:310: error: `result' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:311: error: `row' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:311: error: `mysql_fetch_row' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:313: error: `mysql_fetch_lengths' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `virtual void MySqlConnection::GetColumn(int, Ref) const':
C:\upp\uppsrc\MySql\MySql.cpp:338: error: `row' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp: In member function `void MySqlConnection::FreeResult()':
C:\upp\uppsrc\MySql\MySql.cpp:369: error: `result' undeclared (first use this function)
C:\upp\uppsrc\MySql\MySql.cpp:370: error: `mysql_free_result' undeclared (first use this function)
MySql: 1 file(s) built in (0:00.75), 755 msecs / file, duration = 1578 msecs, parallelization 100%
adler32.c
compress.c
crc32.c
deflate.c
gzio.c
infblock.c
C:\upp\uppsrc\plugin\z\lib\gzio.c:881:7: warning: no newline at end of file
infcodes.c
inffast.c
inflate.c
inftrees.c
infutil.c
trees.c
uncompr.c
zutil.c
plugin\z: 15 file(s) built in (0:01.37), 91 msecs / file, duration = 4453 msecs, parallelization 100%
Sql: 4 file(s) built in (0:03.94), 986 msecs / file, duration = 6250 msecs, parallelization 74%

There were errors. (0:06.28)


Can some one help me?? What must i do that it work?

Re: mysql error [message #5386 is a reply to message #5385] Mon, 18 September 2006 11:32 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
manuel wrote on Mon, 18 September 2006 05:21

i have tried to compile the SQL_MYsql Example, but it didn`t work. I tried to compile it with the MINGW Compiler and i have
the following errors,

In file included from C:\upp\uppsrc\MySql\MySql.cpp:1:
C:\upp\uppsrc\MySql\/MySql.h:12:19: MySql.h: No such file or directory
Can some one help me?? What must i do that it work?




Check whether you have MySql.h (this is MySql header file, not U++ header file) somewhere on your include path (include path is defined in build method).

Mirek
Re: mysql error [message #5391 is a reply to message #5386] Mon, 18 September 2006 13:02 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 697
Registered: December 2005
Location: Budapest, Hungary
Contributor
If your mysql is installed in "C:\Program Files\MySQL\MySQL Server 5.0\", in "Setup/Build methods" menu, add
- to PATH: "C:\Program Files\MySQL\MySQL Server 5.0\bin"
- to INCLUDE: "C:\Program Files\MySQL\MySQL Server 5.0\include"
- to LIB: "C:\Program Files\MySQL\MySQL Server 5.0\bin"
Re: mysql error [message #5404 is a reply to message #5342] Mon, 18 September 2006 21:44 Go to previous messageGo to next message
manuel is currently offline  manuel
Messages: 6
Registered: September 2006
Location: Germany
Promising Member
it Works

Thanks
Re: mysql error [message #6696 is a reply to message #5391] Thu, 23 November 2006 15:30 Go to previous message
floaiza is currently offline  floaiza
Messages: 2
Registered: November 2006
Location: USA
Junior Member
Hi,
I have the setup in "Setup/Build methods" menu, as suggested:
- PATH: "C:\Program Files\MySQL\MySQL Server 5.0\bin"
- INCLUDE: "C:\Program Files\MySQL\MySQL Server 5.0\include"
- LIB: "C:\Program Files\MySQL\MySQL Server 5.0\bin"

Aside from a lot of warnings about deprecated usage, when I attempt to build the example I get a fatal error:

----- MySql ( MAIN MSC8 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (4 / 4)
MySql.cpp
MySql: 1 file(s) built in (0:01.52), 1522 msecs / file, duration = 1542 msecs
Linking...
LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
C:\upp-mingw\out\MSC8.Debug_full\MySql.exe : fatal error LNK1120: 1 unresolved externals

There were errors. (0:13.32)

Any suggestions?

Thanks.
Previous Topic: Sql global
Next Topic: MySQL and Sql class issue
Goto Forum:
  


Current Time: Mon Apr 29 06:58:49 CEST 2024

Total time taken to generate the page: 0.06000 seconds