tupshin / ocilib-sys-rs Goto Github PK
View Code? Open in Web Editor NEWocilib ffi bindings for rust
License: MIT License
ocilib ffi bindings for rust
License: MIT License
I used the ocilib-sys-rs in my own program. But i have some questions when linkd to the "ocilibw.lib":
note: Non-UTF-8 output: ocilib-4d05a7669fbd44a3.0.o : error LNK2019: \xce\xde\xb7\xa8\xbd\xe2\xce\xf6\xb5\xc4\xcd
\xe2\xb2\xbf\xb7\xfb\xba\xc5 OCI_Initialize\xa3\xac\xb8\xc3\xb7\xfb\xba\xc5\xd4\xda\xba\xaf\xca\xfd _ZN6ocilib11ocili
b_safe6ocilib11OraAccessor7connect17hd564a63b9833e608E \xd6\xd0\xb1\xbb\xd2\xfd\xd3\xc3\r\nocilib-4d05a7669fbd44a3.0.
o : error LNK2019: \xce\xde\xb7\xa8\xbd\xe2\xce\xf6\xb5\xc4\xcd\xe2\xb2\xbf\xb7\xfb\xba\xc5 OCI_ConnectionCreate\xa3\
xac\xb8\xc3\xb7\xfb\xba\xc5\xd4\xda\xba\xaf\xca\xfd _ZN6ocilib11ocilib_safe6ocilib11OraAccessor7connect17hd564a63b983
3e608E \xd6\xd0\xb1\xbb\xd2\xfd\xd3\xc3\r\nE:\\Rust\\ocilib_rs\\target\\debug\\deps\\ocilib-4d05a7669fbd44a3.exe : fa
tal error LNK1120: 2 \xb8\xf6\xce\xde\xb7\xa8\xbd\xe2\xce\xf6\xb5\xc4\xcd\xe2\xb2\xbf\xc3\xfc\xc1\xee\r\n
The output is scrambled! My machine is windows10 system. And i build the lib ocilibw by using visual studio 2015. And I use build.rs to build it:
//build.rs. the ocilibw.lib is located in E:\\Rust\\ocilib_rs
fn main() {
println!("cargo:rustc-link-search=native={}", "E:\\Rust\\ocilib_rs");
println!("cargo:rustc-link-lib={}", "ocilibw");
}
I don't know how to fix it. From the ocilib document, i found the following description :
To use OCILIB in a project:
I guess whether it's needed to pass preprocessing parameters to rustc. Would that be the problem here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.