Home » U++ Library support » U++ SQL » Simple U++ Sql Tutorial
Simple U++ Sql Tutorial [message #9408] |
Sat, 05 May 2007 17:39 |
|
michael
Messages: 153 Registered: May 2007 Location: Germany
|
Experienced Member |
|
|
Hi there,
i'm very new to upp and i'm looking for a really simple tutorial how i can connect to an sql-db (best would be via odbc or directly to an ms-sql, maybe also to my-sql).
The SQLApp Example is a little bit to complicated for me at the moment. It would be very nice if someone could explain me a real basic upp-sql example.
Michael
Edit:
i have tried the Reference Example SQL MySQL and was not able to compile. I got the following error:
In file included from J:\Entwicklung\UPP\MySQL\MySQL.cpp:1:
C:/Programme/UltimatePP/uppsrc/MySql/MySql.h:12:19: MySql.h: No such file or directory
In file included from J:\Entwicklung\UPP\MySQL\MySQL.cpp:1:
C:/Programme/UltimatePP/uppsrc/MySql/MySql.h:44: error: ISO C++ forbids declaration of `MYSQL' with no type
C:/Programme/UltimatePP/uppsrc/MySql/MySql.h:44: error: expected `;' before '*' token
C:/Programme/UltimatePP/uppsrc/MySql/MySql.h:56: error: `MYSQL' has not been declared
C:/Programme/UltimatePP/uppsrc/MySql/MySql.h:50: error: `MYSQL_PORT' was not declared in this scope
C:/Programme/UltimatePP/uppsrc/MySql/MySql.h: In constructor `Upp::MySqlSession::MySqlSession()':
C:/Programme/UltimatePP/uppsrc/MySql/MySql.h:62: error: `mysql' undeclared (first use this function)
C:/Programme/UltimatePP/uppsrc/MySql/MySql.h:62: error: (Each undeclared identifier is reported only once for each function it appears in.
)
MySQL: 1 file(s) built in (0:01.93), 1935 msecs / file, duration = 3750 msecs, parallelization 96%
There were errors. (0:04.67)
Seems that there is something missing... what do i have to do to get this mysql-example work?
Michael
[Updated on: Sat, 05 May 2007 19:16] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Apr 28 17:15:55 CEST 2024
Total time taken to generate the page: 0.07109 seconds
|