From: Matthias Lampert Date: 2001-08-17T23:06:55+09:00 Subject: [ruby-talk:19945] RE: NEWS: RE-ENTRY: ruby Mysql for cygwin Hi, folks! > dllwrap --target=cygwin --as=as --dlltool-name=dlltool > --driver-name=gcc > --export-all -s --def=mysql.def -L/usr/local/lib/ruby/1.6/i686-cygwin > -L/usr/local/lib -o mysql.so mysql.o -L. -lcygwin-ruby16 > -L/cygdrive/c/mysql/lib/opt -lmysqlclient > mysql.o: In function `free_mysql': > /cygdrive/c/upload/mysql-ruby-2.3.2a/mysql.c:61: undefined reference > to `mysql_close' > mysql.o: In function `free_mysqlres': > /cygdrive/c/upload/mysql-ruby-2.3.2a/mysql.c:68: undefined reference > to `mysql_free_result' > mysql.o: In function `mysql_raise': > /cygdrive/c/upload/mysql-ruby-2.3.2a/mysql.c:76: undefined reference > to `mysql_error' This one has now to be reduced to one item -- the library that contains the link to mysql_real_escape_string(). I just followed the instructions in the manual too literally before: -lmysqlclient is to be replaced by -libmySQL. I just experienced the effect of rubber ducking. Some of you will know... If you still have something to add, please tell me! Thanks. -- Hippo (aka Matthias Lampert, Hamburg) Just another XP and Ruby fan. > > ... > > > > > > READ ON FROM HERE. While formatting the error message I hit the > Outlook keystroke to send... > > > It seems I have missed something, but I really can't see what it might > be. The troubleshooting section of the Mysql manual led to this final > version of the line above, but that didn't help either. > > Just a suspicion: My MySQL version runs another cygwinX.dll than the > cygwin system itself. If there's need to unify, please tell me how > to do it best. > > Thanks a lot! > > -- > > Hippo (aka Matthias Lampert, Hamburg) > Just another XP and Ruby fan. > >