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 » Problem Building SQL-SQLite3\Simple.cpp
Problem Building SQL-SQLite3\Simple.cpp [message #256] Mon, 05 December 2005 13:44 Go to next message
amea is currently offline  amea
Messages: 7
Registered: December 2005
Location: ireland
Promising Member
When I attempt to build simple.cpp in theide I get the following errors (similar errors reported for the MySQL version etc..:

----- plugin\Sqlite3 ( GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (1 / 4)
cd C:\upp\uppsrc\plugin\Sqlite3
----- Sql ( GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (2 / 4)
cd C:\upp\uppsrc\Sql
----- Core ( GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (3 / 4)
cd C:\upp\uppsrc\Core
----- SQL-Sqlite3 ( MAIN GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (4 / 4)
cd C:\upp\reference\SQL-Sqlite3
C:\upp\uppsrc\Sql\sch_schema.h(1) : blocks BLITZ of C:\upp\reference\SQL-Sqlite3\simple.cpp
simple.cpp
c++ -c -I"C:\upp\reference" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -I"C:\upp\SDL-1.2.9\include" -DflagMA
IN -DflagGCC -DflagDEBUG -DflagDEBUG_FULL -DflagBLITZ -DflagWIN32 -DbmYEAR=2005 -DbmMONTH=12 -DbmDAY=5 -D
bmHOUR=12 -DbmMINUTE=40 -DbmSECOND=9 -D_DEBUG -O0 -g2 -static -x c++ "C:\upp\reference\SQL-Sqlite3\simp
le.cpp" -o "C:/upp/out/SQL-Sqlite3/MINGW.Debug_full.Main/simple.o"
In file included from C:\upp\reference\SQL-Sqlite3\simple.cpp:1:
C:/upp/uppsrc/plugin/Sqlite3/Sqlite3.h:53:7: warning: no newline at end of file
In file included from C:/upp/uppsrc/plugin/Sqlite3/Sqlite3Schema.h:75,
from C:/upp/uppsrc/Sql/sch_header.h:35,
from C:\upp\reference\SQL-Sqlite3\/simple.h:6,
from C:\upp\reference\SQL-Sqlite3\simple.cpp:2:
C:/upp/uppsrc/Sql/sch_model.h:149:15: simple.sch: No such file or directory
C:\upp\reference\SQL-Sqlite3\simple.cpp: In function `void ConsoleMainFn_()':
C:\upp\reference\SQL-Sqlite3\simple.cpp:53: error: `S_SIMPLE_TEST1' undeclared (first use this function)
C:\upp\reference\SQL-Sqlite3\simple.cpp:53: error: (Each undeclared identifier is reported only once for each
function it appears in.)
C:\upp\reference\SQL-Sqlite3\simple.cpp:53: error: expected `;' before "row"
C:\upp\reference\SQL-Sqlite3\simple.cpp:59: error: `SIMPLE_TEST1' undeclared (first use this function)
C:\upp\reference\SQL-Sqlite3\simple.cpp:59: error: `ID' undeclared (first use this function)
C:\upp\reference\SQL-Sqlite3\simple.cpp:59: error: `NAME' undeclared (first use this function)
C:\upp\reference\SQL-Sqlite3\simple.cpp:59: error: `LASTNAME' undeclared (first use this function)
C:\upp\reference\SQL-Sqlite3\simple.cpp:59: error: expected primary-expression before ',' token
C:\upp\reference\SQL-Sqlite3\simple.cpp:61: error: expected primary-expression before ',' token
C:\upp\reference\SQL-Sqlite3\simple.cpp:63: error: expected primary-expression before ',' token
C:\upp\reference\SQL-Sqlite3\simple.cpp:71: error: expected primary-expression before ',' token
C:\upp\reference\SQL-Sqlite3\simple.cpp:75: error: expected primary-expression before ',' token
C:\upp\reference\SQL-Sqlite3\simple.cpp:86: error: `row' undeclared (first use this function)
C:\upp\reference\SQL-Sqlite3\simple.cpp:90: error: expected primary-expression before ']' token
C:\upp\reference\SQL-Sqlite3\simple.cpp:98: error: expected primary-expression before ']' token
Exitcode: 1
compiled in (0:02.10)
1 file(s) compiled in (0:02.10) 2109 msec/file

There were errors. (0:02.46)

I am not familiar enough with C++ to be able to debug this myself yet, so any ideas would be greatly appreciated.

BTW I am building on a windows 'XP Home' machine with SP2, using the mingw compiler that I downloaded with UPP.

Many Thanks!

[Updated on: Mon, 05 December 2005 13:47]

Report message to a moderator

Re: Problem Building SQL-SQLite3\Simple.cpp [message #264 is a reply to message #256] Mon, 05 December 2005 14:57 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Our bug(s). Seems like nobody bothered to test it with the MinGW so far...

I am posting fixes - in the zip there is reference package fixed, however, there was further stupid bug in Sql code - please replace .cpp file inside uppsrc/Sql package too....

Thank you for detection!
  • Attachment: fix.zip
    (Size: 5.75KB, Downloaded 1479 times)
Re: Problem Building SQL-SQLite3\Simple.cpp [message #276 is a reply to message #264] Mon, 05 December 2005 22:53 Go to previous message
amea is currently offline  amea
Messages: 7
Registered: December 2005
Location: ireland
Promising Member
Thanks luzr!

Will try this immediately.


amea
Next Topic: SQLCommander, MySQL and other questions...[NEEDS SPLITTING...]
Goto Forum:
  


Current Time: Fri Apr 26 05:06:16 CEST 2024

Total time taken to generate the page: 0.04314 seconds