Debug Build?

ls612

Deity
Moderator
Joined
Mar 10, 2008
Messages
8,288
Location
America
I was messing around with the DLL and tried to create a debug configuration for my mod. I added _DEBUG to the preprocessor definitions and removed FINAL_RELEASE, but when I tried to build it it threw six errors in the linker regarding unresolved external dependencies. So I'm wondering if it is possible at all to create a debug configuration for the DLL and if so how?
 
Same question here, where did you remove FINAL_RELEASE from?

The project properties pages in VS. I've been assuming in the mean time that this isn't fixable and have instead created my own custom build type which enables the assertion system, some custom logging, and a few other things.
 
I've also got a custom build configuration but it just disables optimization. What did you need to (un)set to enable the asserts?

Which dependencies are unresolved when you define _DEBUG?

1. In CvAssert.h (in External Dependencies in VS) you just need to change it to define CVASSERT_ENABLE, or define that as a project property (I choose the latter in order to avoid editing the source unnecessarily).

2. I don't remember what is missing, it has been a long time since I tried it. I'll go and try again and see.

This is the error:

Code:
Error	84	error LNK2001: unresolved external symbol __imp___CrtDbgReportW	C:\Users\*****\Documents\CvGameCoreSourceBase\CvGameCoreDLL_Expansion2\CvBuilderTaskingAI.obj	CvGameCoreDLL_Expansion2
 
Back
Top Bottom