Re: Forcing A Symbol Into A DLL

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jim Beveridge (jimb_at_connectedswDOTcom)
Date: 06/16/04


Date: Wed, 16 Jun 2004 14:30:34 -0700

Bob,

Use "Dumpbin /all somefile.lib >sym.txt" to create a text file of all
symbols, search for the symbol of interest with a text editor, and you'll
see the decorated name.

On my machine, Dumpbin is in C:\Program Files\Microsoft Visual
Studio\VC98\Bin

In VC6, you can embed the link parameter in one of your source files, like
this:

#pragma comment(linker, "/include:?SomeSymbol@@3_NA")

Note that the question mark is actually part of the decorated name.

Regards,
Jim Beveridge

"Robert A Riedel" <rariedelmsdn@beckman.com> wrote in message
news:Oni4rZ9UEHA.1152@TK2MSFTNGP09.phx.gbl...
> While building a DLL, I need to force a symbol defined in a static library
> into the linked image presumably using the link option /INCLUDE:symbolname
> briefly explained in the MS documentation, however, true to the typical MS
> documentation, no examples are provided that demonstrate how such a symbol
> name should be constructed, and nothing I have tried works.
>
> Can someone explain how a valid symbol name is constructed from C++
function
> names in a library that link will accept?



Relevant Pages

  • [ANN] EditiX 5.0 - XML Editor Major Release
    ... Editor and XSLT Debugger. ... On-the-fly documentation when choosing an element ... Code assistant for extension/restriction type (taking into account the ...
    (comp.lang.java.announce)
  • [ANN] EditiX 5.0 - XML Editor Major Release
    ... Editor and XSLT Debugger. ... On-the-fly documentation when choosing an element ... Code assistant for extension/restriction type (taking into account the ...
    (comp.text.xml)
  • [ANN] EditiX 5.0 - XML Editor Major Release
    ... Editor and XSLT Debugger. ... On-the-fly documentation when choosing an element ... Code assistant for extension/restriction type (taking into account the ...
    (de.comp.text.xml)
  • Re: PHP Documentation
    ... moment mainly for internal documentation. ... I am not an editor of anything, ... The current system where everybody can submit reports and patches to the ... PHP style or in Wiki style. ...
    (comp.lang.python)
  • Re: Suggs for a wiki with pdf output
    ... Working for an organization that has a need for a wiki, ... whose information can be nicely formatted for documentation ... Wiki software, written in PHP. ... WYSIWYG editor written in javascript. ...
    (alt.php)