Advertisement

Visual studio release settings

Started by April 14, 2017 02:47 PM
1 comment, last by jpetrie 7 years, 8 months ago

Hi

debug is ok but after switching to release configuration with Visual Studio I get lots of:

Reference to unresolved external symbol

Why, what am I doing wrong? I've disabled "generate debug info" in linker settings and changed:

multithreaded-debug dll to multithreaded-dll

Many thanks

Right...so compare your linker options between debug and release configuration pages. I try to keep to making setting changes on the All Configurations mode to avoid this failure unless appropriate. Same goes for elsewhere amongst the property pages. When set to all configurations, fields that are different between configurations will be shown in bold text.

Dev careful. Pixel on board.

Advertisement

Why, what am I doing wrong? I've disabled "generate debug info" in linker settings and changed:

The libraries you link to are set per-configuration; this lets you (for example) link to debug versions of third-party libraries in your debug builds, and release versions of those libraries in release versions. It sounds like, as Mark states, you are missing some libraries in your release config that you have specified in your debug config.

Without more details about what symbols are not being found by the linker (i.e., without the full error texts) we can't really speculate much further, but Mark's suggestion of comparing the linker setting pages between the two configurations should lead you to your missing libraries.

This topic is closed to new replies.

Advertisement