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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:04:55+00:00 2026-05-28T08:04:55+00:00

I have static C++ library, compiled with MSVC and dll file (library called opennurbs).

  • 0

I have static C++ library, compiled with MSVC and dll file (library called opennurbs). I need to use this library in project, compiled by mingw (I’m use Qt creator, but project doesn’t use qt libraries). So, I’ve got unresolved externals. I think problem with name mangling.
How can I convert .lib file to .a library?
I try to use nm command but it doesn’t works: “No symbols in foo.dll”.
Extern “C” doesn’t work because it’s C++ 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-05-28T08:04:55+00:00Added an answer on May 28, 2026 at 8:04 am

    Generally speaking, you won’t be able to use a C++ DLL built with one compiler from a program built with another one. Name mangling is just one of the issues – there is no compatibility guarantee for exception handling, RTTI, memory management or even the class layout itself (especially for multiple and virtual inheritance), to name just a few potential problems.

    Some suggestions (none of them ideal):

    • The best solution is if you can sidestep the original problem completely and either obtain binaries for your compiler or build from source code (i.e. build both DLL and its client from MinGW in your case).
    • If you can expose the DLL’s interface as pure C API, do it. E.g. Win32 is “C API” and works quite well with all kinds of compilers, and not just C/C++.
    • If you want “object oriented” API for your DLL, don’t need portability and are prepared to invest a necessary development effort, providing a COM API might be worth a look.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a static library project in Eclipse that was compiled into a .a
I have a code which is compiled into a library (dll, static library and
I have a static linkable library of C and Fortran routines compiled and linked
Under gcc (g++), I have compiled a static .a (call it some_static_lib.a ) library.
I have a static library *.lib created using MSVC on windows. The size of
I have a static library (.lib file) on Windows platform, I want to know
I have created a static library following this link . But I am facing
I have a static library project that I inherited from another developer. I added
I have a C++ compiled static library of about 15 classes and their member
I have a static library of C files, compiled with g++ on Cygwin. I

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.