Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 1.15 KB

linker-tools-warning-lnk4104.md

File metadata and controls

45 lines (27 loc) · 1.15 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Linker Tools Warning LNK4104
Linker Tools Warning LNK4104
11/04/2016
LNK4104
LNK4104
ca6728db-d616-419a-a570-65e8445c6079

Linker Tools Warning LNK4104

export of symbol 'symbol' should be PRIVATE

The symbol can be one of the following:

  • DllCanUnloadNow

  • DllGetClassObject

  • DllGetClassFactoryFromClassString

  • DllGetDocumentation

  • DllInitialize

  • DllInstall

  • DllRegisterServer

  • DllRegisterServerEx

  • DllRegisterServerExW

  • DllUnload

  • DllUnregisterServer

  • RasCustomDeleteEntryNotify

  • RasCustomDial

  • RasCustomDialDlg

  • RasCustomEntryDlg

This warning is emitted when you are building an import library for a DLL and export one of the above functions without specifying it as PRIVATE in the module-definition file. In general, these functions are exported for use only by OLE. Placing them in the import library can lead to unusual behavior when a program linked to the library incorrectly makes calls to them. For more information about the PRIVATE keyword, see EXPORTS.