Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: using typedef-name 'sqlite3_value' after 'struct' #133

Closed
rstory1 opened this issue Aug 2, 2017 · 2 comments
Closed

Error: using typedef-name 'sqlite3_value' after 'struct' #133

rstory1 opened this issue Aug 2, 2017 · 2 comments
Assignees

Comments

@rstory1
Copy link

rstory1 commented Aug 2, 2017

I am attempting to use this project in a Qt application. I have included all the necessary files, but when I try to build my project in Qt I get this error. In addition on the same line I get a conflicting declaration 'typedef int sqlite3_value'.

The errors occur on line 22 of Database.h

Could this be something on my end? An issue with the Qt compiler?

@SRombauts SRombauts self-assigned this Aug 2, 2017
@SRombauts
Copy link
Owner

This seems a duplicate of #125 Incompatibility in 3.19.0 and #126 several compile errors in VS 2013 (SQLite version 3.19.0)

@SRombauts SRombauts marked this as a duplicate of #125 Aug 2, 2017
@SRombauts
Copy link
Owner

SRombauts commented Aug 2, 2017

To use older SQLite version set the CMake variable SQLITE_USE_LEGACY_STRUCT. For instance

cd build 
cmake -DSQLITE_USE_LEGACY_STRUCT=ON - DCMAKE_BUILD_TYPE=Release ..
make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants