It can available at http://stackoverflow.com/questions/23856967/ Release-build-does-not-work-error-with-eigen-library
When I build my program in debug mode, everything works fine. However, when I switch to release build, I get the following errors. It seems that there are a problem with Eigen . Could anyone help?
1>------ Build started: Project: qtdemo, Configuration: Release Win32 ------1> moc_qtdemo.cpp1>c:\users\documents\visual studio 2012\projects\qtdemo\qtdemo\generatedfiles\release\../../qtdemo.h(6): fatal error C1083: Cannot open include file: ‘Eigen/Dense‘: No such file or directory1> main.cpp1>c:\users\documents\visual studio 2012\projects\qtdemo\qtdemo\qtdemo.h(6): fatal error C1083: Cannot open include file: ‘Eigen/Dense‘: No such file or directory1> qtdemo.cpp1>c:\users\documents\visual studio 2012\projects\qtdemo\qtdemo\qtdemo.h(6): fatal error C1083: Cannot open include file: ‘Eigen/Dense‘: No such file or directory1> Generating Code...========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The Include directories need to BES set for both debug and release mode. (and, more generally, for whichever configuration you support).
This is because the want different settings for a specific configuration mode. For example, you ' d want-to-link to a debug the library for a debug build, or turn optimizations on for a release build, and so On.
This can is done under Visual Studio through Project --> "name of project" properties --> VC++ directories , and selecting in the top bar of the configuration you want to the Settings of.
Also Note that setting can is changed for all the configurations at the same time by selecting ' All configurations ', like Shown in the following picture:
Release build does not work-error with Eigen library?