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 » Example code for CtrLib/Sqlite needed
Re: Example code for CtrLib/Sqlite needed [message #12837 is a reply to message #12829] Tue, 20 November 2007 18:18 Go to previous messageGo to previous message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Hi Alex and Thank you!

Well, for me it works on optimal, speed and size. When compiling on DEBUG it presents the following errors. But for now it is ok for me. I will use the Optimal compilation.
By the way, why "using namespace Upp;" must be right next these includes?

//ADDED BY ME
#include <CtrlLib/CtrlLib.h>
#include <plugin/sqlite3/Sqlite3.h>


Another begginer question (sorry): why there is no need to inlude also

#include <Sql/sch_header.h>
#include <Sql/sch_source.h>

HomeBudget project includes them.

Thanks once again...

Alex



Errors while compiling in DEBUG:

----- CtrlLib ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (1 / 9)
----- CtrlCore ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (2 / 9)
----- RichText ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (3 / 9)
----- Draw ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (4 / 9)
----- Core ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (5 / 9)
----- plugin/bmp ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (6 / 9)
----- plugin\z ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (7 / 9)
----- plugin\png ( GUI GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (8 / 9)
----- HB ( GUI MAIN GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (9 / 9)
main.cpp
In file included from C:/upp/uppsrc/Sql/sch_schema.h:24,
from C:\Upp\MyApps\HB\/HB.h:12,
from C:\Upp\MyApps\HB\main.cpp:1:
C:/upp/uppsrc/plugin/sqlite3/Sqlite3Schema.h:6:1: warning: "INT64" redefined
In file included from C:/upp/uppsrc/Core/Core.h:329,
from C:/upp/uppsrc/Draw/Draw.h:4,
from C:/upp/uppsrc/CtrlCore/CtrlCore.h:4,
from C:/upp/uppsrc/CtrlLib/CtrlLib.h:4,
from C:\Upp\MyApps\HB\/HB.h:5,
from C:\Upp\MyApps\HB\main.cpp:1:
C:/upp/uppsrc/Core/Defs.h:194:1: warning: this is the location of the previous definition
In file included from C:\Upp\MyApps\HB\main.cpp:1:
C:\Upp\MyApps\HB\/HB.h:26:7: warning: no newline at end of file
HB: 1 file(s) built in (0:05.11), 5110 msecs / file, duration = 5110 msecs
Linking...
(option '-O 2' ignored)
___main: duplicate
-> used: libmingw32.a:gccmain.o:1
-> discarded: libgcc.a:__main.o:1
3 undefined symbol(s):
Upp::SqlSchema::InlineAttribute(char const*)(referenced from c:\upp\out\hb\mingw.debug_full.gui.main\main.o:1; SCHE
MA_DATES(Upp::SqlSchema &); SCHEMA_DATES(Upp::SqlSchema&); SCHEMA_GROUPS(Upp::SqlSchema &); SCHEMA_GROUPS(Upp::
SqlSchema&); ...)
Upp::SqlSchema::Table(char const*)(referenced from c:\upp\out\hb\mingw.debug_full.gui.main\main.o:1; SCHEMA_DATES(U
pp::SqlSchema &); SCHEMA_DATES(Upp::SqlSchema&); SCHEMA_GROUPS(Upp::SqlSchema &); SCHEMA_GROUPS(Upp::SqlSchema&
); ...)
Upp::SqlSchema::Column(char const*, char const*)(referenced from c:\upp\out\hb\mingw.debug_full.gui.main\main.o:1;
SCHEMA_DATES(Upp::SqlSchema &); SCHEMA_DATES(Upp::SqlSchema&); SCHEMA_GROUPS(Upp::SqlSchema &); SCHEMA_GROUPS(U
pp::SqlSchema&); ...)
linking aborted due to fatal errors
collect2: ld returned 1 exit status

There were errors. (0:05.89)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Setting SQLite language?!
Next Topic: Create Table with Sqlite
Goto Forum:
  


Current Time: Fri Jul 18 10:50:53 CEST 2025

Total time taken to generate the page: 0.03782 seconds