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 8875689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:02:17+00:00 2026-06-14T19:02:17+00:00

I have a library I’m building which is targeted to be a DLL that

  • 0

I have a library I’m building which is targeted to be a DLL that is linked into the main solution.

This new DLL is quite complex and I’d like to make use of C++11 features, while the program that will link it most certainly does not. In fact, the main program is currently “cleanly” built using VS2008 and VS2010 (and i think GCC 4.3 for linux?).

What I propose:

Using VS2012 as the IDE and Intel C++ Compiler 2013 for compilation to .dll/.so – for linux – which, as I understand, is basically down to machine form (like an .exe).

While I’m familiar with using C++ to solve problems, I am not fluent in the fundamentals of compilation/linking, etc. Therefore, I’d like to ask the community if

  1. This is possible
  2. If it is possible, how easy is it (as simple as I described?) / what pitfalls or issues can I expect along the way (is it worth it)?

Areas of concern I anticipate:

  • runtime libraries – I expect this to be the factor that derails this effort. I know nothing about them/how they work except that they might be a problem.
  • Standard Library implementation differences – should it matter if it’s down to DLL form?
  • threading conflicts – the dll threads and the main programs threads never modify the same data, and actually one of the main program’s threads will call the DLL functions.

Bonus: While the above is the route I expect to take, I’d ideally like to have this code open for intellisense, general viewing, etc (essentially for it to become a project in the main solution). Is there a way to specify different runtime libraries/compiler? Can this be done?

EDIT: The main reason for this bonus part is to eliminate the necessary “versioning” conflicts that will arise if the main program and this library are built separately.

NOTE: I’m not using C++11 just for the sake of being newer – strongly typed enums and cross-platform threading code will be huge bonuses for the library.

  • 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-06-14T19:02:18+00:00Added an answer on June 14, 2026 at 7:02 pm

    The question isn’t so much “Can an application use a library built with a different compiler ?” (The answer is yes.) but “What C++ features can be used in the public interface of a library built with another compiler and C++ standard library?”

    On Windows, the answer is “almost none”. Interfaces (classes containing only virtual functions) are about it. No classes with data members. No exceptions. No runtime objects (like iostream instances or strings). No templates.

    On Linux, the answer is “lots more but still not many”. Classes are ok, as long as the ODR is satisfied. Exceptions will work. Templates too, as long as the definition is exactly the same on both sides. But definitions of standard library types did change between C++03 and C++11, so you won’t for example be able to pass std::string or std::vector<int> objects between the application and library (both sides can use these features, but the same object can’t cross over).

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

Sidebar

Related Questions

I have a library called example that I'm installing into my global site-packages directory.
I have library project which referred by many applications. Now I got a new
This is driving me crazy. I have library A which in turn includes library
I have a library made in C++/GDI that I am trying to port to
I have a library project that should be the base for several web applications.
We have a library created as both .lib and .dll (it's a big library
I have a library written in C++, and a wrapper for this library written
I have a library that interacts with our phone system, ie, Hey phone, call
I have gdata library install on my ArchLinux, and a simple application which imports
I have a library written in C that I would like to use in

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.