SQLite and Borland C++ Builder

over 5 years ago malczak c++ comments

i've downloaded SQLlite to test it and write some short application using it. first of all i wanted to use it with BCB, so i've compiled sqlite3.lib using it (some errors occured but i managed to solve them). but when i was trying to include SQLite in one of my old projects i got this compile error :


[C++ Error] sqlite3.h(1765): E2232 Constant member 'sqlite3indexinfo::aConstraint' in class without constructors


in borlands help one can read that


"A class that contains constant or reference members (or both) must have at least one user-defined constructor. Otherwise, there would be no way to ever initialize such members."


i dont know what the problem is, because this error points to the structure (struct) in SQLite header file sqlite3indexinfo. i was tring to deal with it changing procjects compile, c++ options but it didnt help. i dont know how to deal with this error ;) as for now i've changed sqlite3indexinfo definition in sqlite3.h removing keyword const. naive solution... but works

Comments

No comments as yet. Be first to comment.

New comment

  1. (with http or https prefix)

  2. (use [code][/code] tags to post a code snippet)

  3. (javascript is required)

Website content premeditately commited by malczak & sobstel.
Layout by mlando. Icons by dryicons.com. All rights reserved.