Symbol 'symbol' marked as import in 'module' is public in 'module'

From RAD Studio
Jump to: navigation, search

Go Up to C++ Linker Error and Warning Messages

Incremental linker message not used anymore.

This happens if you compile one object module using imports (-D_RTLDLL, for example), and another module using static binding (no such compilation flag). The result is that one object will expect global variables within the module to require an indirection in the assembly code (because it is an import), while the other object will expect to reference the data directly.

The solution is to either compile all object modules to using imports, or compile them all to link statically.