LNK2001 unresolved external symbol when building with DPS



While instrumenting a project receive linker error LNK2001: unresolved external symbol


There are a couple of reasons for this error, here are the most common:

1. Linking wit Whole Program Optimization:

Linking with '/GL' - whole program optimization can cause these errors. We do not support these optimizations and therefore, when our compile drive sees this option enabled, it disables. However, if the resulting code is the linked with code where whole program optimizations have been employed, problems can occur.

2. Instrumenting in-line functions

In your DevPartner settings ensure you DO NOT have 'instrument inline functions' checked. Especially if you have third party libraries that may contain in-line functions.

If neither one of these items fixes the problem please contact Technical Support.

Please note the above article is for the DPS Performance and Coverage tools.

Old KB# 11150
Comment List
Related Discussions