Linker fails looking for SQLite on Ubuntu

Please post support and help requests here.
Diablo550
Posts: 3
Joined: 29 Jul 2017, 03:45

Linker fails looking for SQLite on Ubuntu

Postby Diablo550 » 11 Aug 2017, 02:16

I have;

<code>
#include <Poco/Data/SQLite/Connector.h>

int main(int argc, char** argv)
{
// register SQLite connector
Poco::Data::SQLite::Connector::registerConnector();

// create a session
static Session session("SQLite", managers);
static siteManagers person;
.
.
.

</code>

g++ -o server.run server.o tables.o -lPocoUtil -lPocoXML -lPocoNet -lPocoJSON -lPocoFoundation -lPocoData -pthread


server.o: In function `main':

server.cpp:(.text+0xb50): undefined reference to `Poco::Data::SQLite::Connector::registerConnector()'


I tried to add these inline to link; without effect:

-I $POCO_BASE/Data/SQLite/include -I $POCO_BASE/Data/include


How can I link to Poco SQL on Ubuntu ?

Return to “Support”

Who is online

Users browsing this forum: No registered users and 1 guest

cron