The Visual Studio 2019 C compiler finds #include files when in "Debug" mode but, when I switch to "Release" mode, the same include files are not seen by the compiler, which generates a compile error.
CodePudding user response:
It's always best include the the text of the actual error.
My guess is that you set an "Additional Include Directory" in your Project settings, but you did so for just the "current" configuration. You need to make sure you do it for All configurations and All platforms.
CodePudding user response:
Did you set include path for both build modes? Check entries in debug configuration and compare with release configuretion.