Thank you for the useful information Ricardo. I wasn't aware "cdecl" would work
under windows xp instead of the conventional "stdcall" (in fact I only tested
under Mac OS X). One other thing you'll need to do if you want the library to
run in a more predictable way is update the add-library section as follows:
: add-oci-library
"oci" {
{ [ win32? ][ "oci.dll" "cdecl" ] }
{ [ macosx? ][ "libclntsh.dylib" "cdecl" ] }
{ [ unix? ] [ "libclntsh.so" "cdecl" ] }
} cond add-library ; parsing
then call add-oci-library (look at the libsample.factor example code in
http://fun-factor.blogspot.com/2007/10/getting-started-with-factor-easy-ffi.html)
Elie
Date: Sat, 5 Jan 2008 09:35:52 -0200
From: [EMAIL PROTECTED]
To: [email protected]
Subject: [Factor-talk] Oracle bindings
Hi,
I was playing around with the oracle bindings on windows xp but I kept geting a
"memory protection fault at address 10000000" and a "operating system sygnal
11" once and some other random errors.
After playing a little bit, I changed tha calling convention from "stdcall" to
"cdecl" (at liboci.factor) and everything started to work wonderfully. The oci
programmer's guide says it uses the calling convention of C and C++ [1] and
browsing CLSQL's I found it uses cdecl.
[]s,
Ricardo Boccato Alves.
[1]
http://cs.ifmo.ru/~ad/Documentation/oracle-10g-lib-doc/appdev.101/b10779/oci01int.htm
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk