error trying to use sybct in windows

D

dominique.plante

"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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top