向后兼容性Backward Compatibility

对于产品版本间的兼容性,库 OLDNAMES.LIB 将旧名称映射到新名称。For compatibility between product versions, the library OLDNAMES.LIB maps old names to new names. 例如,open 将映射到 _openFor instance, open maps to _open. 仅在使用以下命令行选项的组合进行编译时必须显式链接 OLDNAMES.LIB:You must explicitly link with OLDNAMES.LIB only when you compile with the following combinations of command-line options:

  • /Zl(从对象文件中忽略默认库名称)和 /Ze(默认值 - 使用 Microsoft 扩展)/Zl (omit default library name from object file) and /Ze (the default — use Microsoft extensions)

  • /link(链接器控件)、/NOD(无默认库搜索)和 /Ze/link (linker-control), /NOD (no default-library search), and /Ze

    有关编译器命令行选项的详细信息,请参阅编译器参考For more information about compiler command-line options, see Compiler Reference.

另请参阅See Also

兼容性Compatibility