Skip to content

About VS2019 version compiling Falcor3.2 error problem  #16

@chnth

Description

@chnth

You may encounter the problem of "Cannot find Falcor.lib" during the process of generating the solution. This is because when compiling the Falcor project, there will be an error: "C1189 #error: The <experimental/filesystem> header providingstd: "experimental::filesystem is deprecated by Microsoft and will be REMOVED. It is superseded by the C++17 header providing std::filesystem. You can define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to acknowledge that you have received this warning. (Compile source file Experimental\RenderGraph\RenderGraphUI.cpp) Falcor D:\VS2019\VC\Tools\MSVC\14.29.30133\include\experimental\filesystem 30"and "C4244 "Parameter": Convert from "wchar_t" to "const _Elem", may lose data FalcorD:\VS2019\VC\Tools\MSVC\14.29.30133\include\xstring 2575" error warning".
The solution to the first problem above: you need to add in the include item: _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to Preprocessor definitions.
Project -> Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions.
The second question: In the project that contains warnings, right-click Properties-C/C++-General-Treat warnings as errors-change to "No".
After the Falcor solution is modified by the above method, it can be compiled. For the second question, I don't know if there is any problem with this modification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions