Uri Even-Chen writes:
> Sinisa,
>
> Thank you for your quick reply. I still can't solve this problem, maybe
> mySQL is not installed properly? the directory you have mentioned is
> exactly "/usr/lib/mysql/", where I did mention in my compilation. it
> contains these files:
>
> libdbug.a libmerge.a libmysqlclient.la libmysys.a
> libheap.a libmysqlclient.a libmystrings.a libnisam.a
>
> I'm sorry I bother you about this issue, but I've been trying to solve
> it since the morning. what can be the problem?
>
> Uri.
>
HI!
May be your linker has problems. try this more then explicit command:
g++ -Imysql++ -I/usr/local/include/mysql++ -O3 -o simple1 simple1.cc
-lsqlplus /usr/lib/mysql/libmysqlclient.a
Regards,
Sinisa
+----------------------------------------------------------------------+
| TcX ____ __ _____ _____ ___ == mysql@stripped |
| /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic |
| /*/ /*/ /*/ \*\_ |*| |*||*| mailto:sinisa@stripped |
| /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaka, Cyprus |
| /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ |
| ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ |
| /*/ \*\ Developers Team |
+----------------------------------------------------------------------+