mysql && C
Michal Polak
mpolak na informatics.muni.cz
Pondělí Březen 2 13:26:11 CET 1998
Zdravim.
> > ------------------------------
> > gcc -I/usr/local/mysql/include -L/usr/local/mysql/lib -lm -lmysqlclient
> > -o sqlpokus sqlpokus.c
> > ------------------------------
> >
> > a tohle mi to vratilo :
> >
> > ------------------------------
> > /tmp/cca026371.o: In function `main':
> > /tmp/cca026371.o(.text+0x62): undefined reference to `mysql_connect'
> > /tmp/cca026371.o(.text+0x84): undefined reference to `mysql_select_db'
> > /tmp/cca026371.o(.text+0xa6): undefined reference to `mysql_query'
> > /tmp/cca026371.o(.text+0xc3): undefined reference to `mysql_store_result'
> > /tmp/cca026371.o(.text+0xec): undefined reference to `mysql_fetch_row'
> > /tmp/cca026371.o(.text+0x18c): undefined reference to `mysql_free_result'
> > /tmp/cca026371.o(.text+0x199): undefined reference to `mysql_close'
> > --------------------------------
>
> Neviem ci nebudem trochu vedla, ale skusim:
To uz jsem asi trochu prehnal ptat se, zda je v sqlpokus.c radek
#include <mysql.h>, ze jo ?
> --
> Tomas Potok, student & Linux admin., Gymnazium Golianova 68, Nitra
> potok na afnet.uniag.sk
>
Ted uz asi budu uplne vedle:
Je ta knihovna (libmysql) zaregistrovana v systemu pomoci ldconfig ?
--
Michal Polak
Contact:
addr: Pavlovska 33, 623 00, BRNO, Czech Republic
tel: 05/ 38 27 14
e-mail: mpolak na fi.muni.cz
web: http://www.fi.muni.cz/~mpolak
Everyone should hold strong convictions, I am convinced I will have
another glass.
Další informace o konferenci Linux