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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:23:40+00:00 2026-06-11T03:23:40+00:00

Any help much appreciated, my forehead’s getting bruised. We have a big open source

  • 0

Any help much appreciated, my forehead’s getting bruised.

We have a big open source DICOM library (dcmtk) we use as a static lib. It’s unmanaged C++, and we’re linking to it from a managed C++ DLL that wraps it. It uses CMake to munge up the build instructions for various platforms. Moving to VS2010 (from 2008) broke our build, so we took the opportunity to update the library version we’re using as well (which should be more VS2010 friendly). After some screwing around the lib now builds (give or take a zillion warnings about type conversions). But now the code that uses it won’t link to it. It throws a bunch of unresolved external symbol errors.

It’s finding the library OK (if I change the lib filename it craps out earlier on w/ an appropriate msg).

If I disassemble the lib file with DUMPBIN I see the appropriate tokens, e.g.:
…
000000000000000E: C3 ret

??1OFString@@QEAA@XZ (public: __cdecl OFString::~OFString(void)):

0000000000000000: 40 53              push        rbx…

but the linker doesn’t find it:

error LNK2001: unresolved external symbol "public: __thiscall OFString::~OFString(void)" (??1OFString@@QAE@XZ)

I’ve been working the theory that it’s the __cdecl vs. __thiscall mismatch, but haven’t been able to get VS to build the lib with any other convention. (Ironically the old 2008 version, which does emit __thiscall, seems to be compiled with /Gd option that I thought forces __cdecl).

Any insights?

  • 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-11T03:23:42+00:00Added an answer on June 11, 2026 at 3:23 am

    You can see the name mangling is different. Using undname.exe might help your cause:

    Undecoration of :- "??1OFString@@QEAA@XZ"
    is :- "public: __cdecl OFString::~OFString(void) __ptr64"
    

    versus:

    Undecoration of :- "??1OFString@@QAE@XZ"
    is :- "public: __thiscall OFString::~OFString(void)"
    

    Also, are you doing a mix of x64 and x86?

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

Sidebar

Related Questions

I can't get my progress bar to work. Any help is much appreciated! Here's
Any help here would be greatly appreciated. I have this table hospital Nurse |
I'm still grasping the basics of sql. Any help much appreciated. The table is
Ok, I'm against a wall on this one, so any help much appreciated. I
This should be pretty self explanatory, any help much appreciated! Jquery Code $(#larrow img).hide();
Would very much appreciate any help or hint on were to go next. I'm
I've been stuck on this issue for several days - any help is much
Any help would be appreciated, I'm trying to convert the code below to C#,
Any help is appreciated. When using cfimage to generate a captcha, we keep his
Any help most appreciated, this is driving me insane. I'm doing exactly what 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.