Git Product home page Git Product logo

ncmdump-rs's Introduction

ncmdump-rs's People

Contributors

mashplant avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ibaserve

ncmdump-rs's Issues

rust如何链接c++静态库?

Hi,

我是从《在Rust的wasm后端中链接C++》文章过来的,有一个类似的问题想请教一下。

我有一个Rust库,并且提供了C接口。我用c++重新将这些C接口封装了一下。
我也想将c++代码和rust,使用wasm打包在一起。

遇到的问题是,如果使用emcc将c++代码编译成wasm,并在Rust在.cargo/config的rustflags中指定link-args,链接这个wasm。
但是编译出的wams和胶水代码,并没有处理c++中有关STL库的符号。wasm_bindgen正常,效果像这样,
image

下面env中,很奇怪的符号,就是c++ mangle的符号

请问一下,有什么方法,能同时处理wasm_bindgen符号,还可以把c++的符号正常决议吗?

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.