Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3308262
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:30:05+00:00 2026-05-17T21:30:05+00:00

General: I have a standards compliant C++ API that uses Boost libraries that I

  • 0

General: I have a standards compliant C++ API that uses Boost libraries that I would like to support as a native, statically linkable library on Windows, OS X, and Linux, and that I’d like to wrap for .NET on Windows and Mono on OS X and Linux.

Specifics: Currently I have it compiling natively for all platforms – this followed from using standard C++ and Boost. I also got it to compile and run for C++/CLI on Windows, but I was forced to use the Boost .DLLs. The next step I’m not sure where to begin with as I’ve never tried to use shared libraries on *nix systems. I know Boost provides shared libraries on Linux (and I’ll presume the same is true on OS X), but will these just work auto-magically with my Visual Studios compiled C++/CLI executable, or do I need to do some work? There’s no C++/CLI compiler for MonoDevelop, but supposedly Visual Studios compiled CLI will work just fine… it’s the dynamically linked libraries that are confusing me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T21:30:06+00:00Added an answer on May 17, 2026 at 9:30 pm

    C++/CLI assemblies will only load on Mono if they are compiled with /clr:pure. A mixed mode C++/CLI assembly (which is any assembly using native code, ie: boost) will not run on non-Windows platforms.

    Your best option is to provide a C API, and use P/Invoke to call into the native code. This is portable across platforms, provided you include the same C API on both platforms.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The general problem: We have urls coming to our IIS web servers formatted like:
I have some code that generates image of a pie chart. It's a general
I understand that some countries have laws regarding website accessibility. In general, what are
I have a general exception handler, Application_error in my global.asax where I'm trying to
I have to give a general note to some huge Java project for which
I have a MySQL table with utf8 general ci collation. In the table, I
In general, I occasionally have a chain of nested macros with a few preprocessor
I have always wondered if, in general, declaring a throw-away variable before a loop,
In general, is it a best practice to have simple POJO Java classes implement
A general architecture question in Sitecore 6... Let’s say we have a situation where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.