Please use the 'mysqlbug' script to post problems like this, so that we know more about your system! (Also, so that they go to the mailing list and not to an individual <grin>.) See the manual for more info on getting help and reporting errors. You need another library (maybe two more?). Try this command: CC -o test test.o -lnet -lsock -L/home/linker3/mysql/lib -lmysqlclient If you want to force static linking, read the docs for your compiler for the correct flag to do this. Tim On Wed, Jan 13, 1999 at 05:25:59PM -0700, Mark D. Brettin wrote: > Can someone help with this compiler error I got? > > CC -o test test.o /home/linker3/mysql/lib/libmysqlclient.a > > Undefined first referenced > symbol in file > socket >/home/linker3/mysql/lib/libmysqlclient.a(libmysql.o) > gethostbyname >/home/linker3/mysql/lib/libmysqlclient.a(libmysql.o) > setsockopt >/home/linker3/mysql/lib/libmysqlclient.a(libmysql.o) > getservbyname >/home/linker3/mysql/lib/libmysqlclient.a(libmysql.o) > inet_addr >/home/linker3/mysql/lib/libmysqlclient.a(libmysql.o) > shutdown >/home/linker3/mysql/lib/libmysqlclient.a(libmysql.o) > connect >/home/linker3/mysql/lib/libmysqlclient.a(libmysql.o) > ld: fatal: Symbol referencing errors. No output written to test > > > I've been struggling with this all afternoon!!! > > Thanks in advance, > > Mark > . > > ----------------------------------------------------------- > Send a mail to [EMAIL PROTECTED] with > unsubscribe mysql [EMAIL PROTECTED] > in the body of the message to unsubscribe from this list. ----------------------------------------------------------- Send a mail to [EMAIL PROTECTED] with unsubscribe mysql [EMAIL PROTECTED] in the body of the message to unsubscribe from this list.
