Hi,
I cannot make the sqlite3 backend working (macosx).
If I do
#include <soci/soci.h>
//#include <soci/sqlite3/soci-sqlite3.h>
#include <string>
using namespace soci;
int main() {
std::string dep ("FINANCE");
std::string department;
const char *dep_name = "FINANCE";
std::string name;
//backend_factory const &backEnd = *soci::factory_sqlite3();
session
sql("sqlite3","/Users/sylvain/development/sylisa/dblite-solution/dblite/cpt2.db3"
);
sql.once
<< " select DEPARTMENT_ID, NAME "
<< " from ROLE where DEPARTMENT_ID=?"
<< " order by NAME"
, use(dep), into(department), into(name)
;
return 0;
}
it says:
Failed to find shared library for backend sqlite3
if I do:
#include <soci/soci.h>
#include <soci/sqlite3/soci-sqlite3.h>
#include <string>
using namespace soci;
int main() {
std::string dep ("FINANCE");
std::string department;
const char *dep_name = "FINANCE";
std::string name;
backend_factory const &backEnd = *soci::factory_sqlite3();
session
sql(backEnd,"/Users/sylvain/development/sylisa/dblite-solution/dblite/cpt2.db3"
);
sql.once
<< " select DEPARTMENT_ID, NAME "
<< " from ROLE where DEPARTMENT_ID=?"
<< " order by NAME"
, use(dep), into(department), into(name)
;
return 0;
}
it says: /usr/local/include/soci/sqlite3/soci-sqlite3.h:27: error:
soci-backend.h: No such file or directory
How to make it working?
Best regards,
Sylvain
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users