Skip to content

Commit f673574

Browse files
author
Colin Robertson
committed
tweak wording
1 parent f079be2 commit f673574

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/error-messages/tool-errors/linker-tools-warning-lnk4049.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The symbol was both exported from and imported to the program.
1313

1414
This warning is generated by the linker when you declare a symbol by using the `__declspec(dllexport)` storage-class attribute in one object file and reference it by using the `__declspec(dllimport)` attribute in another.
1515

16-
Warning LNK4049 is a more general version of [Linker Tools Warning LNK4217](../../error-messages/tool-errors/linker-tools-warning-lnk4217.md) and [Linker Tools Warning LNK4286](linker-tools-warning-lnk4286.md). The linker generates Warning LNK4049 when it cannot determine from which function the imported symbol was referenced.
16+
Warning LNK4049 is a more general version of [Linker Tools Warning LNK4217](linker-tools-warning-lnk4217.md). The linker generates Warning LNK4049 when it can't determine which function or object file referenced the imported symbol.
1717

1818
The common cases where LNK4049 is generated instead of LNK4217 are:
1919

@@ -25,9 +25,9 @@ To resolve LNK4049, try one of the following:
2525

2626
- Remove the `__declspec(dllimport)` name declaration from the forward declaration of the symbol which triggered LNK4049. You can search for symbols within a binary image by using the **DUMPBIN** utility. The **DUMPBIN /SYMBOLS** switch displays the COFF symbol table of the image. For more information on the **DUMPBIN** utility, see [DUMPBIN Reference](../../build/reference/dumpbin-reference.md).
2727

28-
- Temporarily disable incremental linking and whole-program optimization. Recompiling the application will generate Warning LNK4217, which will include the name of the function from which the imported symbol was referenced. Remove the `__declspec(dllimport)` declaration from the imported symbol and enable incremental linking or whole-program optimization as required.
28+
- Temporarily disable incremental linking and whole-program optimization. Recompiling the application will generate Warning LNK4217, which will include the name of the function from which the imported symbol was referenced. Remove the `__declspec(dllimport)` declaration from the imported symbol and re-enable incremental linking or whole-program optimization as required.
2929

30-
Although the final generated code will behave correctly, the code generated to call the imported function is less efficient than calling the function directly. This warning will not appear when you compile by using the option [/clr](../../build/reference/clr-common-language-runtime-compilation.md).
30+
Although the final generated code will behave correctly, the code generated to call the imported function is less efficient than calling the function directly. This warning doesn't appear when you compile by using the option [/clr](../../build/reference/clr-common-language-runtime-compilation.md).
3131

3232
For more information on import and export data declarations, see [dllexport, dllimport](../../cpp/dllexport-dllimport.md).
3333

@@ -64,6 +64,6 @@ int main()
6464

6565
## See also
6666

67-
[Linker Tools Warning LNK4217](../../error-messages/tool-errors/linker-tools-warning-lnk4217.md) \
67+
[Linker Tools Warning LNK4217](linker-tools-warning-lnk4217.md) \
6868
[Linker Tools Warning LNK4286](linker-tools-warning-lnk4286.md) \
6969
[dllexport, dllimport](../../cpp/dllexport-dllimport.md)

0 commit comments

Comments
 (0)