Forum: Ruby error trying to use sybct in windows

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F98e8bbc010d8ff9818c2f46319b86cc?d=identicon&s=25 Dominique Plante (dplante)
on 2006-03-22 02:59
(Received via mailing list)
"LoadError: 127: The specified procedure could not be found.   -
Init_sybct"

I was able to build the library sybct-ruby-0.2.8 on my windows xp
machine (this library should enable connectivity to a sybase ASE 12.5
database).

I was able to do it with lots of trial and error, but basically this is
what you should put in a batch file to be able to generate the library:
cl -nologo -osybct.so sybct.obj /link c:\ruby\lib\msvcrt-ruby18.lib
kernel32.lib oldnames.lib user32.lib advapi32.lib wsock32.lib
S:\sw.32\OCS-12_5\lib\libct.lib S:\sw.32\OCS-12_5\lib\libcs.lib
"C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\LIB\msvcrt.lib"
-opt:ref,icf /dll /nodefaultlib

ok, now you have:
sybct.so
sybct.obj
sybsql.rb
sybct.rb

I put the files in C:\ruby\lib\ruby\1.8\i386-mswin32 (a place with
other .so files)

now I started up irb and typed
require 'sybct'

and irb spits back:

LoadError: 127: The specified procedure could not be found.   -
Init_sybct
c:/ruby/lib/ruby/1.8/i386-mswin32/sybct.so
        from c:/ruby/lib/ruby/1.8/i386-mswin32/sybct.so
        from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re
quire'
        from c:/ruby/lib/ruby/1.8/i386-mswin32/sybct.rb:3
        from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re
quire__'
        from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re
quire'
        from (irb):1

Any ideas what to do now?  I feel I'm pretty close to having sybct
working under windows!!!!

Thanks!!!
Dominique
This topic is locked and can not be replied to.