mysql && C

Zdenek Pizl, Czech Agriculture University, Prague pizl na max.af.czu.cz
Pondělí Březen 2 13:22:22 CET 1998


On Mon, 2 Mar 1998, Potok Tomas wrote:

> >  jenze se mi ho nepodarilo ani prelozit
> > 
> > tady je jak jsem ho prekladal  :
> > ------------------------------
> >  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'
> > --------------------------------
> > 
> > znate nekdo odpoved, jak to prelstit ???
> 
> Neviem ci nebudem trochu vedla, ale skusim:
> Vcera som prekladal apache + phpfi a hadzalo mi to nieco podobne,
> nakoniec som prisiel na to, ze adresar .../mysql/lib vobec nemam a
> mysqlclient mam v adresari ../mysql/client  ==> skuste zmenit tu cestu
> -L...

  No, tak tohle jsem proveroval, cesty jsou spravne, ale koukal jsem, ze v
lib/ je jeste libmygcc.a. Docela by me zajimalo, k cemu tam je ??


			===============================
			"			      "
			"                             "
			"    Zdenek Pizl (Corp. yA)   "
			"			      "
			"      pizl na max.af.czu.cz     "
			"                             "
			===============================



Další informace o konferenci Linux