Coder Social home page Coder Social logo

ocilib-sys-rs's People

Contributors

tupshin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

skysegbr

ocilib-sys-rs's Issues

link error

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:

  • include "ocilib.h" in your application
  • define call convention(OCI_API) to __stdcall
  • define charset mode(OCI_CHARSET_ANSI | OCI_CHARSET_WIDE)

I guess whether it's needed to pass preprocessing parameters to rustc. Would that be the problem here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.