I suggest you ...

Allow programmers to get special object's mangled name

MSVC should allow programmers to get special object's mangled name,which may be very useful when loading a cpp-export dll dynamically.
For example,
namespace AA{
extern const a = 1;
}
const char *p = get_mangled_name(AA:a);//?a@AA@3XX_XX

22 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
rlib2015 shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

2 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • Paul M commented  ·   ·  Flag as inappropriate

    These change per compiler version - might as well just make it extern "C" {} or link to the import lib directly so it just works.

  • BlaZIV commented  ·   ·  Flag as inappropriate

    the only way to achieve that may be the MSVC compiler which should add a feature to support it.

Feedback and Knowledge Base