I wrote a small C program that execute a query (show processlist).

If the name of the file is *.c all works fine.

If the name of the file is *.cp the linker gives an error:


gcc -g -I'/usr/include/mysql' -c Santino.cp
gcc Santino.o -L'/usr/lib' -lmysqlclient -lz -o test
Santino.o(.eh_frame+0x11): In function `main':
/home/santino/java/mysql/top/Santino.cp:75: undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status


If I remove all MySql calls in Santino.cp all works fine.

Can someone help me?
Thanks.

Santino

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to