c:/mysql/lib/opt//mysqlclient.lib(./mysqlclient.dir/RelWithDebInfo/md2.obj):f:\build\mysql-5.0:(.text[??1MD2@TaoCrypt@@UAE@XZ]+0x5b): undefined reference to `??3@YAXPAX@Z’
c:/mysql/lib/opt//mysqlclient.lib(./mysqlclient.dir/RelWithDebInfo/trees.obj): In function `gen_codes’:
f:\build\mysql-5.0:(.text[_gen_codes]+0×4): undefined reference to `__security_cookie’
f:\build\mysql-5.0:27: undefined reference to `@__security_check_cookie@4′
c:/mysql/lib/opt//mysqlclient.lib(./mysqlclient.dir/RelWithDebInfo/inftrees.obj): In function `inflate_table’:
f:\build\mysql-5.0:(.text[_inflate_table]+0×7): undefined reference to `__security_cookie’
f:\build\mysql-5.0:289: undefined reference to `@__security_check_cookie@4′
f:\build\mysql-5.0:289: undefined reference to `@__security_check_cookie@4′
f:\build\mysql-5.0:289: undefined reference to `@__security_check_cookie@4′
f:\build\mysql-5.0:289: undefined reference to `@__security_check_cookie@4′
f:\build\mysql-5.0:289: undefined reference to `@__security_check_cookie@4′
fu000067.o:(.idata$2+0xc): undefined reference to `libmsvcrt_a_iname’
fu000068.o:(.idata$2+0xc): undefined reference to `libmsvcrt_a_iname’
fu000071.o:(.idata$2+0xc): undefined reference to `libmsvcrt_a_iname’
fu000073.o:(.idata$2+0xc): undefined reference to `libmsvcrt_a_iname’
fu000074.o:(.idata$2+0xc): undefined reference to `libmsvcrt_a_iname’
fu000076.o:(.idata$2+0xc): more undefined references to `libmsvcrt_a_iname’ follow
nmth000066.o:(.idata$4+0×0): undefined reference to `_nm___iob’
collect2: ld returned 1 exit status
mysql.o: In function `optimize_for_async’:
C:/dev/ruby/mysqlplus/ext/mysql.c:336: undefined reference to `vio_blocking’
C:/dev/ruby/mysqlplus/ext/mysql.c:337: undefined reference to `vio_is_blocking’
C:/dev/ruby/mysqlplus/ext/mysql.c:339: undefined reference to `vio_fastsend’
mysql.o: In function `readable’:
c:/ruby/include/ruby-1.9.1/ruby/ruby.h:463: undefined reference to `vio_poll_read’
c:/ruby/include/ruby-1.9.1/ruby/ruby.h:463: undefined reference to `vio_poll_read’
mysql.o: In function `retry’:
C:/dev/ruby/mysqlplus/ext/mysql.c:1025: undefined reference to `vio_should_retry’
mysql.o: In function `interrupted’:
C:/dev/ruby/mysqlplus/ext/mysql.c:1032: undefined reference to `vio_was_interrupted’
collect2: ld returned 1 exit status
make: *** [mysql.so] Error 1
meant “windows doesn’t have all of those defined, like linux does–I don’t think it does, anyway…maybe?”
C:\ruby\lib\ruby\gems\1.9.1\gems\mysql-2.7>ruby extconf.rb — –with-mysql-include=mysql_here/include –with-mysql-lib=mysql_here/lib/opt
checking for mysql_query() in -lmysqlclient… no
means “you don’t have the headers+libraries installed, or you aren’t pointing to them right–or ‘with mingw you need to specify full path like c:/something’”
or “in extconf.rb check to make sure it says mingw|mswin32 not just mswin32″
or “use the tmtm version not the windows gem version, which hates mingw for some reason–or use lavena’s mysql-gem [though it's not yet 1.9 compat]“
note you may need to delete the .dll from your path while building, too, for some odd reason…