Discussion:
[soci-users] /soci-sqlite3.h:28:26: fatal error: soci-backend.h: No such file or directory
Witold E Wolski
2013-09-24 12:42:01 UTC
Permalink
Hi,

using : soci-3.2.2

build with sqlite support, installed, configured with cmake.

now trying to connect to sqlite file
included

#include "soci/soci.h"
#include "soci/sqlite3/soci-sqlite3.h"


and getting

/home/witold/prog/soci-install/include/soci/sqlite3/soci-sqlite3.h:28:26:
fatal error: soci-backend.h: No such file or directory


sure I could something on the lines
#include "soci/soci.h"
#include "soci/soci-backend.h"
#include "soci/sqlite3/soci-sqlite3.h"

but I do not think that this is the intended usage.

c
--
Witold Eryk Wolski
Witold E Wolski
2013-09-24 12:44:41 UTC
Permalink
sorry ...

there is a wrong include in soci/sqlite3/soci-sqlite3.h

#include "soci-backend.h"

is something wrong with the install?

best
Post by Witold E Wolski
Hi,
using : soci-3.2.2
build with sqlite support, installed, configured with cmake.
now trying to connect to sqlite file
included
#include "soci/soci.h"
#include "soci/sqlite3/soci-sqlite3.h"
and getting
fatal error: soci-backend.h: No such file or directory
sure I could something on the lines
#include "soci/soci.h"
#include "soci/soci-backend.h"
#include "soci/sqlite3/soci-sqlite3.h"
but I do not think that this is the intended usage.
c
--
Witold Eryk Wolski
--
Witold Eryk Wolski
Mateusz Loskot
2013-09-24 12:51:21 UTC
Permalink
Post by Witold E Wolski
sorry ...
there is a wrong include in soci/sqlite3/soci-sqlite3.h
#include "soci-backend.h"
is something wrong with the install?
Nothing wrong with the install, it's just that since the day SOCI was born,
it was assumed users will use -I to point to all necessary includes.

As I mentioned in my reply a minute ago, we're on the way to solve it properly,
though the complete solution will be part of SOCI 4.0.0
as SOCI 3.x line is in getting into very slow maintenance mode only.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
"Participation in this whole process is a form of torture" ~~ Szalony
Witold E Wolski
2013-09-24 13:44:01 UTC
Permalink
Mateusz,

Are there many API changes from 3.0 to 4.0? Is this somewhere documented?

Is the 4.0 branch usable (beta)? does it include sqlite support?

I am just starting integrating soci in my project so I could go for soci 4.0

best
Post by Mateusz Loskot
Post by Witold E Wolski
sorry ...
there is a wrong include in soci/sqlite3/soci-sqlite3.h
#include "soci-backend.h"
is something wrong with the install?
Nothing wrong with the install, it's just that since the day SOCI was born,
it was assumed users will use -I to point to all necessary includes.
As I mentioned in my reply a minute ago, we're on the way to solve it properly,
though the complete solution will be part of SOCI 4.0.0
as SOCI 3.x line is in getting into very slow maintenance mode only.
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
"Participation in this whole process is a form of torture" ~~ Szalony
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
soci-users mailing list
https://lists.sourceforge.net/lists/listinfo/soci-users
--
Witold Eryk Wolski
Mateusz Loskot
2013-09-24 14:27:11 UTC
Permalink
Post by Witold E Wolski
Mateusz,
Are there many API changes from 3.0 to 4.0?
Is this somewhere documented?
Not yet.
At the moment master (current released version) and develop branches are
more or less equivalent, feature-wise.
The develop, has got new source tree layout and is undergoing some
organising and preparation for buried headers, new tests and
merging of numerous outstanding pull requests, etc.

Some of pull requests have been assigned to 4.0.0 milestone:

https://github.com/SOCI/soci/issues?milestone=1

Other features planned have been listed here:

https://github.com/SOCI/soci/wiki/Roadmap

I have to say, there is lots of wishes planned to come true for SOCI 4.0.0,
so the time-to-market depends on the manpower we've got.
Post by Witold E Wolski
Is the 4.0 branch usable (beta)? does it include sqlite support?
There is no separate branch, as SOCI 4 works is happening in the develop.
But, as I mentioned, not many new features have been merged, most of them are
1) dangling as pull requests waiting to be reviewed and merge (browse
them at GitHub)
2) not yet started
Post by Witold E Wolski
I am just starting integrating soci in my project so I could go for soci 4.0
The release date of 4.0.0 has not been set, so I'd suggest you to
stick to SOCI 3.x,
The latest 3.x version is always available from the master branch,
until 4.0.0 is released and merged to master.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
"Participation in this whole process is a form of torture" ~~ Szalony
Mateusz Loskot
2013-09-24 12:49:08 UTC
Permalink
Post by Witold E Wolski
using : soci-3.2.2
build with sqlite support, installed, configured with cmake.
now trying to connect to sqlite file
included
#include "soci/soci.h"
#include "soci/sqlite3/soci-sqlite3.h"
and getting
fatal error: soci-backend.h: No such file or directory
Yes, this is a known annoyance. Please, see
https://github.com/SOCI/soci/issues/169
Post by Witold E Wolski
sure I could something on the lines
#include "soci/soci.h"
#include "soci/soci-backend.h"
#include "soci/sqlite3/soci-sqlite3.h"
but I do not think that this is the intended usage.
As mentioned in the #169, currently, you need to use appropriate -I
to point to several SOCI folders (core and particular backend).

As you can read in the issue #169 and two other linked there (#25 and #125),
this is being solved currently and I'm hoping to complete the buried headers
implementation in the develop branch within next few weeks.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
"Participation in this whole process is a form of torture" ~~ Szalony
Loading...