Public symbol 'symbol' defined in both library module 'module1' and 'module2'

From RAD Studio
Jump to: navigation, search

Go Up to C++ Linker Error and Warning Messages

-wdup or -wdpl command-line equivalents -wdup is displayed by default; -wdpl is not displayed by default. This warning is displayed if you have duplicate symbols in two separate libraries. There is special handling for -wdup and -wdpl. -wdup can be considered the master control for warnings about duplicate publics. If this warning is disabled, no message about duplicate publics is emitted. -wdpl controls whether or not warnings are emitted for duplicate publics that are being linked from library modules. If -wdpl is disabled, and -wdup is enabled, only warnings for duplicate publics from object files on the linker command line are emitted. If -wdpl and -wdup are both enabled, the linker flags duplicate publics that are in modules being linked from library files.

Currently, -wdpl is the only warning that is disabled by default. So specifying no warning options on the command line is the same as the following:

-w+exp -w+rty -w+dup -w-dpl -w+nou -w+srd -w+dee -w+dli -w+snf