Skip to content

Instantly share code, notes, and snippets.

@luislavena
Created February 4, 2011 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luislavena/810579 to your computer and use it in GitHub Desktop.
Save luislavena/810579 to your computer and use it in GitHub Desktop.
C:\Users\Luis\Projects\_sandbox\tiny_tds>rake compile
(in C:/Users/Luis/Projects/_sandbox/tiny_tds)
cd tmp/i386-mingw32/tiny_tds/1.8.7
C:/Users/Luis/Tools/Ruby/ruby-1.8.7-p330-i386-mingw32/bin/ruby.exe -I. ../../../../ext/tiny_tds/extconf.rb --with-freetds-dir=C:/Users/Luis/Projects/_sandbox/installed-freetds
checking for main() in -lsybdb... yes
checking for sybfront.h... yes
checking for sybdb.h... yes
creating Makefile
cd -
cd tmp/i386-mingw32/tiny_tds/1.8.7
make
gcc -I. -I. -IC:/Users/Luis/Tools/Ruby/ruby-1.8.7-p330-i386-mingw32/lib/ruby/1.8/i386-mingw32 -I../../../../ext/tiny_tds -DHAVE_SYBFRONT_H -DHAVE_SYBDB_H -IC:/Users/Luis/Projects/_sandbox/installed-freetds/include -g -O2 -DFD_SETSIZE=256 -c ../../../../ext/tiny_tds/client.c
../../../../ext/tiny_tds/client.c: In function 'rb_tinytds_connect':
../../../../ext/tiny_tds/client.c:253:5: warning: passing argument 2 of 'dbsetuserdata' from incompatible pointer type
C:/Users/Luis/Projects/_sandbox/installed-freetds/include/sybdb.h:783:6: note: expected 'unsigned char *' but argument is of type 'struct tinytds_client_userdata *'
gcc -I. -I. -IC:/Users/Luis/Tools/Ruby/ruby-1.8.7-p330-i386-mingw32/lib/ruby/1.8/i386-mingw32 -I../../../../ext/tiny_tds -DHAVE_SYBFRONT_H -DHAVE_SYBDB_H -IC:/Users/Luis/Projects/_sandbox/installed-freetds/include -g -O2 -DFD_SETSIZE=256 -c ../../../../ext/tiny_tds/result.c
gcc -I. -I. -IC:/Users/Luis/Tools/Ruby/ruby-1.8.7-p330-i386-mingw32/lib/ruby/1.8/i386-mingw32 -I../../../../ext/tiny_tds -DHAVE_SYBFRONT_H -DHAVE_SYBDB_H -IC:/Users/Luis/Projects/_sandbox/installed-freetds/include -g -O2 -DFD_SETSIZE=256 -c ../../../../ext/tiny_tds/tiny_tds_ext.c
gcc -shared -s -o tiny_tds.so client.o result.o tiny_tds_ext.o -L. -LC:/Users/Luis/Tools/Ruby/ruby-1.8.7-p330-i386-mingw32/lib -LC:/Users/Luis/Projects/_sandbox/installed-freetds/lib -L. -Wl,--enable-auto-image-base,--enable-auto-import,--export-all -lmsvcrt-ruby18 -lsybdb -lshell32 -lws2_32
cd -
cp tmp/i386-mingw32/tiny_tds/1.8.7/tiny_tds.so lib/tiny_tds/tiny_tds.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment