# Error trying to use sybct in windows

**URL:** <https://www.ruby-forum.com/t/error-trying-to-use-sybct-in-windows/55560>\
**Category:** Ruby\
**Created:** [March 22, 2006, 2:59am UTC](https://www.ruby-forum.com/t/error-trying-to-use-sybct-in-windows/55560 "2006-03-22T02:59:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dplante](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@dplante](https://www.ruby-forum.com/u/dplante)\
**Post date:** [March 22, 2006, 2:59am UTC](https://www.ruby-forum.com/t/error-trying-to-use-sybct-in-windows/55560/1 "2006-03-22T02:59:04Z")

</div>

“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
