Giter Site home page Giter Site logo

Comments (3)

kobalicek avatar kobalicek commented on May 29, 2024

Hello,

I have no experience with C++/CLI so I'm not able to do any kind of testing in this area.

If you consume asmjit as a statically linked library, don't forget to define ASMJIT_STATIC, otherwise asmjit would think it's a dynamically linked library. As a last resort, you can also embed asmjit in your project - just add .cpp files into your target, define ASMJIT_STATIC, and you should be done.

If none of these helps then I'm out of ideas as I'm not a C++/CLI user.

from asmjit.

ByteWhite1x1 avatar ByteWhite1x1 commented on May 29, 2024

Hi. Thank you for the fast reply. I did as you suggested. I used the last resort. I just dropped the source code folder in my VS2019 C++ CLI project.

Now the project compiles and runs just fine. VS also compiled the DLL into the output folder. The latest version works just fine.

This means that you don't have to use CMake at all nor do any additional steps when you embed the source code. That caused a huge confusion.

from asmjit.

kobalicek avatar kobalicek commented on May 29, 2024

The reason why embedding always works is that the compiler uses the same compilation flags as the rest of the executable. I guess that if your project is C++/CLI and you use a statically compiled asmjit which has been compiled with different compilation flags possibly unaware of C++/CLI it could cause problems.

BTW there is a documentation about embedding in build instructions:

If you think the wording is incorrect or confusing feel free to PR a documentation change :)

from asmjit.

Related Issues (20)

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.