Re: Proxy/Stub Dll exported symbol Warnings



Kelly W. Zini <ControlProducts@xxxxxxxxxxxxxxxx> wrote:
I am receiving warnings during the dll proxy build step in a ATL COM
server app. The make file output is as follows:

TESTAPPps.def : warning LNK4222: exported symbol 'DllGetClassObject'
should not be assigned an ordinal

Did you consult the documentation for LNK4222 warning, and found it
lacking?

The Def file is:

LIBRARY "TESTAPPPS"

EXPORTS
DllGetClassObject @1 PRIVATE
DllCanUnloadNow @2 PRIVATE
GetProxyDllInfo @3 PRIVATE
DllRegisterServer @4 PRIVATE
DllUnregisterServer @5 PRIVATE

If I remove the 4 export symbols form the def file

You don't need to remove export symbols completely, just the "@1
PRIVATE" part. A list of names is all you need.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Proxy/Stub Dll exported symbol Warnings
    ... your documentation comment... ... TESTAPPps.def: warning LNK4222: exported symbol 'DllGetClassObject' ... DllGetClassObject @1 PRIVATE ...
    (microsoft.public.vc.atl)
  • Re: Suduko solver demo
    ... form of the sudoku solver as downloaded. ... private List remainingCells; ... Warning: unchecked call to addas a member of the raw ... Warning: unchecked conversion ...
    (comp.lang.java.help)
  • Re: Hiding inherited method
    ... why is there no warning that the code may not work the ... Is it simply because the _new_ keyword turns it off? ... Without the _new_ keyword, the warning about hiding fires, but this is a case ... where no hiding will happen anyway, because the private method _does_not_ ...
    (microsoft.public.dotnet.languages.csharp)
  • warning: this used in base member initializer list
    ... I'm guessing the warning stems from the fact that I'm passing ... However, I'm not actually using 'this', just passing and storing ...
    (comp.lang.cpp)
  • Proxy/Stub Dll exported symbol Warnings
    ... I am receiving warnings during the dll proxy build step in a ATL COM server ... TESTAPPps.def: warning LNK4222: exported symbol 'DllGetClassObject' should ... DllGetClassObject @1 PRIVATE ...
    (microsoft.public.vc.atl)