In Visual C++ 8, I'm attempting to build the latest OpenCV release. I'm using the BUILD_ALL target which attempts to build both the debug and release versions of everything. I'm encountering a link error when it attempts to link the opencv_python application. The error is that the linker can't find the Python27_d.lib library which would be expected since I don't have that library, only the release library. What I don't understand is that it is the release library (without the _d) that is required in the project configuration and it is what is passed on the resulting command line.
Does VS add the _d by default if the debug version is being built. Is there a way to selectively turn it off for a given referenced library? BTW, the release version of the app builds fine.