Hi Gaurav,
How are you doing?
I am doing good.I tried setting the path and driver but still getting the same problem.
I am pasting the error below.Right now i am online if it is possible for you we can chat.
[root@developmentserver home]# g++ -I/usr/local/include test11.cpp -o test11 -L /usr/local/lib -ltdsodbc
/tmp/cc63DQFe.o(.gnu.linkonce.t._ZN7otl_cur4openER8otl_conn+0x76): In function `otl_cur:
pen(otl_conn&)':
: undefined reference to `SQLSetStmtAttr'
/tmp/cc63DQFe.o(.gnu.linkonce.t._ZN7otl_cur4openER8otl_conn+0xb9): In function `otl_cur:
pen(otl_conn&)':
: undefined reference to `SQLSetStmtAttr'
/tmp/cc63DQFe.o(.gnu.linkonce.t._ZN7otl_cur4execEii+0x44): In function `otl_cur::exec(int, int)':
: undefined reference to `SQLSetStmtAttr'
/tmp/cc63DQFe.o(.gnu.linkonce.t._ZN7otl_cur5errorER7otl_exc+0x39): In function `otl_cur::error(otl_exc&)':
: undefined reference to `SQLGetDiagRec'
/tmp/cc63DQFe.o(.gnu.linkonce.t._ZN8otl_conn6rlogonEPKci+0x5d1): In function `otl_conn::rlogon(char const*, int)':
: undefined reference to `SQLSetConnectAttr'
/tmp/cc63DQFe.o(.gnu.linkonce.t._ZN8otl_conn6rlogonEPKci+0x5ee): In function `otl_conn::rlogon(char const*, int)':
: undefined reference to `SQLSetConnectAttr'
/tmp/cc63DQFe.o(.gnu.linkonce.t._ZN8otl_conn6rlogonEPKci+0x637): In function `otl_conn::rlogon(char const*, int)':
: undefined reference to `SQLSetConnectAttr'
/tmp/cc63DQFe.o(.gnu.linkonce.t._ZN8otl_conn5errorER7otl_exc+0x39): In function `otl_conn::error(otl_exc&)':
: undefined reference to `SQLGetDiagRec'
/tmp/cc63DQFe.o(.gnu.linkonce.t._ZN8otl_conn6commitEv+0x18): In function `otl_conn::commit()':
: undefined reference to `SQLEndTran'
/tmp/cc63DQFe.o(.gnu.linkonce.t._ZN7otl_sel5firstER7otl_curRiS2_S2_S2_i+0x2a): In function `otl_sel::first(otl_cur&, int&, int&, int&, int&, int)':
: undefined reference to `SQLSetStmtAttr'
/tmp/cc63DQFe.o(.gnu.linkonce.t._ZN7otl_sel5firstER7otl_curRiS2_S2_S2_i+0x7d): In function `otl_sel::first(otl_cur&, int&, int&, int&, int&, int)':
: undefined reference to `SQLSetStmtAttr'
/tmp/cc63DQFe.o(.gnu.linkonce.t._ZN7otl_sel5firstER7otl_curRiS2_S2_S2_i+0x120): In function `otl_sel::first(otl_cur&, int&, int&, int&, int&, int)':
: undefined reference to `SQLFetchScroll'
/tmp/cc63DQFe.o(.gnu.linkonce.t._ZN7otl_sel4nextER7otl_curRiS2_S2_S2_i+0x95): In function `otl_sel::next(otl_cur&, int&, int&, int&, int&, int)':
: undefined reference to `SQLFetchScroll'
thanks for all your help.
Nidhi