Release build does not work-error with Eigen library?

Source: Internet
Author: User

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.