sqlapi++ неопределенная ссылка

Код:

#include <SQLAPI.h>
#include <iostream>

using namespace std;

int main()
{
    SAConnection con;

    try
    {
       con.Connect("localhost@db_for_cpp", "lofectr", "<password>", SA_PostgreSQL_Client);
       SACommand cmd(&con, "select * from data");
       cmd.Execute();
       while( cmd.FetchNext() )
            cout<<"name: "<<cmd[2].asString().GetMultiByteChars()<<"\tdata: "<<cmd[1].asString().GetMultiByteChars()<<endl;

    }
    catch(SAException& x)
    {
     printf("ERROR %d: %s\n",
            x.ErrNativeCode(), x.ErrText().GetMultiByteChars());

    }                        

    return 0;
}

Команда компиляции:

g++ main.cpp -o program -L/home/lofectr/Документы/libs/SQLAPI/lib -I/home/lofectr/Документы/libs/SQLAPI/include/

Система: Linux Ubuntu x64

Вывод:введите сюда описание изображения

пути до библиотеки указанны верно.

В чем проблема?


Ответы (0 шт):