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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:43:05+00:00 2026-05-31T15:43:05+00:00

We just ported our app to Unicode and I am having difficulty with some

  • 0

We just “ported” our app to Unicode and I am having difficulty with some linking.

I wonder if I may be missing some other flag because I am not sure what the name mangling below means:

This is the link error I get

Error 31 error LNK2019: unresolved external symbol “public: class
boost::shared_ptr __thiscall
ResourceManager::GetImage(class std::basic_string<unsigned
short,struct std::char_traits<unsigned short>,class
std::allocator<unsigned short>
> const &,bool)”
(?GetImage@ResourceManager@@QAE?AV?$shared_ptr@VPngImage@@@boost@@ABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@_N@Z)
referenced in function “public: long __thiscall ATL::CAxWindowT::QueryHost(struct _GUID const &,void * *)”
(?QueryHost@?$CAxWindowT@VCWindow@ATL@@@ATL@@QAEJABU_GUID@@PAPAX@Z) wndGroupSearch.obj

The method is in the code. It is declared like so:

boost::shared_ptr<PngImage> GetImage(const tstring& name, bool bLocalizedOnly = false );

When I run dumpbin on the lib that does not link I get the following:

public: class boost::shared_ptr<class PngImage> __thiscall ResourceManager::GetImage(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,bool))
    ?GetImage@ResourceManager@@QAE?AV?$shared_ptr@VPngImage@@@boost@@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@_N@Z

When I dump the Debug version (That does link correctly) I get the following in the dumpbin for the lib

public: class boost::shared_ptr<class PngImage> __thiscall ResourceManager::GetImage(class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > const &,bool)" (?GetImage@ResourceManager@@QAE?AV?$shared_ptr@VPngImage@@@boost@@ABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@_N@Z)
?GetImage@ResourceManager@@QAE?AV?$shared_ptr@VPngImage@@@boost@@ABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@_N@Z (public: class boost::shared_ptr<class PngImage> __thiscall ResourceManager::GetImage(class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > const &,bool))

Is there some boost issue or perhaps a compile or link flag I am missing to fix this?

It works in our debug unicode build, but not in release build. I have not yet found why the mangled names look different:

?$basic_string@GU?$char_traits
vs
?$basic_string@_WU?$char_traits

and the friendlier names are:

ResourceManager::GetImage(class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > const &,bool)

vs

ResourceManager::GetImage(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,bool))

wchar_t and GU vs unsigned short _WU

Any suggestions?

  • 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-31T15:43:06+00:00Added an answer on May 31, 2026 at 3:43 pm

    It seems like there are some references to basic_string<wchar_t> and some references to basic_string<unsigned short>. This could be because the option

    /Zc:wchar_t Treat wchar_t as a native types

    is not set consistently for all files.

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

Sidebar

Related Questions

I have just ported several of our home-made Outlook COM-addins from Delphi 2007 to
Our team is currently using some ported code from an old architecture to a
We just ported our WinForms application to WPF. However, performance decreased dramatically. We have
Because we have discovered and fixed a bug in our app after we uploaded
I just ported an iPad app to the iPhone and due to graphical and
I have a classifieds website where users may sell/buy just about anything... My issue
I just ported a development version of my site over to production and it's
I just posted a question about whether WPF is a good choice for a
I just posted this question and learned about <see cref=> , however when i
(I just posted this in the NUnit discussion group on groups.google.com) Under VS 2008,

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.