Gah, NM, LD_FLAGS and L_FLAGS were backwards **mutter** Sorry bout that -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Whiting Sent: Tuesday, April 16, 2002 7:12 PM To: [email protected] Subject: RE: hmm
Hmmm Well, the code I managed to find re: creating the mysql connection had them in there, but as far as I can see (??) neither is really necessary. After going through and removing all of the un-necessary stuff (everything but -lcrypt and -lmysqlclient), and then switching them around, it still complains about not being able to find mysql_blah Odd. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of brian moore Sent: Tuesday, April 16, 2002 6:41 PM To: [email protected] Subject: Re: hmm On Tue, Apr 16, 2002 at 06:34:56PM -0500, Tom Whiting wrote: > This may seem like an apparent newbie question, and if it does I'm > sorry. I've spent the past couple of hours trying to figure out how to > actually get a mysql connection running on the game. Sadly it > compiles, up untill where the object files are linked in, then spits > out the > following: > > /home/twhiting/beta/src/sql_stats.c:93: undefined reference to > `mysql_escape_string' > > In mysql/mysql.h, I've found the refs to mysql_close and all. > > In the makefile: > LIBS = -lcrypt -lmysqlclient -lnsl -lnisam -lmysys -s > > When it comes to linking in libraries, I've got zero experience > whatsoever. Can anyone see what I'm doing wrong in here? I'm stumped. Order matters. I don't know what the mysys or nisam is for .... is that where the msyql code is? If so, then move mysqlclient AFTER them in the link line. (ie, the linker is one pass... if it loads mysqlclient, sees no symbols it needs, then loads, say, mysys, it's too late for it to go back and grab things from mysqlclient). -- ROM mailing list [email protected] http://www.rom.org/cgi-bin/mailman/listinfo/rom
smime.p7s
Description: S/MIME cryptographic signature

