hi
> checking for compress in -lz... no install the libz. > # gcc SQL.c -L/usr/local/mysql/lib -lmysqlclient > > However, I can't be success. > > #Undefined first referenced > symbol in file > socket /usr/local/mysql/lib/libmysqlclient.a > (libmysql.o) > getpeername /usr/local/mysql/lib/libmysqlclient.a > (violite.o) > gethostbyname_r > /usr/local/mysql/lib/libmysqlclient.a > (libmysql.o) > setsockopt /usr/local/mysql/lib/libmysqlclient.a > (violite.o) > getservbyname /usr/local/mysql/lib/libmysqlclient.a > (libmysql.o) > floor /usr/local/mysql/lib/libmysqlclient.a > (password.o) > getsockopt /usr/local/mysql/lib/libmysqlclient.a > (libmysql.o) > inet_addr /usr/local/mysql/lib/libmysqlclient.a > (libmysql.o) > inet_ntoa > /usr/local/mysql/lib/libmysqlclient.a > (my_net.o) > shutdown > /usr/local/mysql/lib/libmysqlclient.a > (violite.o) > connect /usr/local/mysql/lib/libmysqlclient.a > (libmysql.o) > ld: fatal: Symbol referencing errors. No output > written to a.out > collect2: ld returned 1 exit status you should add some -L and -l options to the compiler command, since it seems not to find a lot of basic things on your system. it definitely should find gethostbyname etc. they should be in the libresolv.a or something. this is very very basic, you can hardly compile any (network-related) program without this. probably your gcc isn't configured like it should. take a look to a usual working gcc command on your system and copy all -L and -l options. ciao artur -- Artur Hecker Groupe Acc�s et Mobilit� hecker[at]enst[dot]fr D�partement Informatique et R�seaux +33 1 45 81 7507 46, rue Barrault 75634 Paris cedex 13 http://www.infres.enst.fr ENST Paris - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
