The C++ compiler "C:/Program Files (x86)/Dev-Cpp/MinGW64" is not able to compile a simple test program.

62 views
Skip to first unread message

Loukit Khemka

unread,
Oct 7, 2016, 11:57:12 PM10/7/16
to deal.II User Group

This is CMake 3.6.2


Include F:/CMake/bin/dealii-8.4.1/cmake/setup_external_macros.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_add_flags.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_check_cxx_compiler_bug.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_check_mpi_interface.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_clear_cmake_required.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_configure_feature.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_add_definitions.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_add_dependencies.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_add_library.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_add_test.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_find_file.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_find_library.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_find_path.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_initialize_cached_variables.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_insource_setup_target.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_invoke_autopilot.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_package_handle.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_pickup_tests.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_query_git_information.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_deal_ii_setup_target.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_enable_if_links.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_enable_if_supported.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_enable_language_optional.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_expand_instantiations.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_filter_system_libraries.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_find_package.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_find_system_library.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_item_matches.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_purge_feature.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_push_cmake_required.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_register_feature.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_remove_duplicates.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_replace_flag.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_reset_cmake_required.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_set_if_empty.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_strip_flag.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_switch_library_preference.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_to_string.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_to_string_and_add_prefix.cmake

Include F:/CMake/bin/dealii-8.4.1/cmake/macros/macro_verbose_include.cmake


Include F:/CMake/bin/dealii-8.4.1/cmake/setup_cached_variables.cmake

The CXX compiler identification is unknown

The C compiler identification is unknown

Check for working CXX compiler: C:/Program Files (x86)/Dev-Cpp/MinGW64

Check for working CXX compiler: C:/Program Files (x86)/Dev-Cpp/MinGW64 -- broken

CMake Error at F:/CMake/share/cmake-3.6/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler "C:/Program Files (x86)/Dev-Cpp/MinGW64" is not able to
compile a simple test program.

It fails with the following output:

Change Dir: F://CMakeFiles/CMakeTmp



Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe"
"cmTC_e24b7.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"

Microsoft (R) Build Engine version 14.0.25123.0



Copyright (C) Microsoft Corporation. All rights reserved.





Build started 10/8/2016 9:24:44 AM.



Project "F:\CMakeFiles\CMakeTmp\cmTC_e24b7.vcxproj" on node 1 (default
targets).



F:\CMakeFiles\CMakeTmp\cmTC_e24b7.vcxproj(27,3): error MSB4019: The
imported project "C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Default.props" was not
found. Confirm that the path in the <Import> declaration is correct, and
that the file exists on disk.



Done Building Project "F:\CMakeFiles\CMakeTmp\cmTC_e24b7.vcxproj" (default
targets) -- FAILED.





Build FAILED.





"F:\CMakeFiles\CMakeTmp\cmTC_e24b7.vcxproj" (default target) (1) ->



F:\CMakeFiles\CMakeTmp\cmTC_e24b7.vcxproj(27,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.





0 Warning(s)


1 Error(s)





Time Elapsed 00:00:00.20







CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:90 (PROJECT)

CMake Error at CMakeLists.txt:90 (PROJECT):
No CMAKE_C_COMPILER could be found.


Configuring incomplete, errors occurred!

See also "F://CMakeFiles/CMakeOutput.log".

See also "F://CMakeFiles/CMakeError.log".



This is the whole log.


I am a total noob and using windows 10. So, please give a solution like I am a beginner. I have MinGW Compiler, but I do not know the valid path for it.


Please help

Jean-Paul Pelteret

unread,
Oct 8, 2016, 12:04:47 AM10/8/16
to deal.II User Group
Dear Loukit,

Unfortunately deal.II does not officially support Windows. Here's a link with some more information as to how you might get a working version through Windows. There was also another recent post that mentioned using deal.II though the new bash functionality in Windows but, again, this is not officially supported.

Regards,
J-P

Timo Heister

unread,
Oct 8, 2016, 5:55:01 PM10/8/16
to dea...@googlegroups.com
If you are a beginner, I would recommend to start with rhw virtual
machine instead of visual studio:
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_dealii_dealii_wiki_Frequently-2DAsked-2DQuestions-23run-2Ddealii-2Dthrough-2Da-2Dvirtual-2Dbox&d=CwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=bhPRfxaFzFz35a_FCP83075LN9bTsM23jpQG9uOHtRc&s=7DMJmdZC-vz6781urRIYgQ6yPxm1l4qwQAWG_AvrMSk&e=
> --
> The deal.II project is located at https://urldefense.proofpoint.com/v2/url?u=http-3A__www.dealii.org_&d=CwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=bhPRfxaFzFz35a_FCP83075LN9bTsM23jpQG9uOHtRc&s=TCvVPjUP0hyuFvOVIecB5fE3IYqTSg2txaFhtM-e_Yo&e=
> For mailing list/forum options, see
> https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_forum_dealii-3Fhl-3Den&d=CwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=bhPRfxaFzFz35a_FCP83075LN9bTsM23jpQG9uOHtRc&s=BEGkZFOoYnSyZx6cJTw2zZwt1p-OmtLS-u9AvyC5P6o&e=
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+un...@googlegroups.com.
> For more options, visit https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=CwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=bhPRfxaFzFz35a_FCP83075LN9bTsM23jpQG9uOHtRc&s=KYBBxcVAM5H1myEjBmR2DyOKqSRFHsXUBEvjNQOs8rY&e= .



--
Timo Heister
http://www.math.clemson.edu/~heister/
Reply all
Reply to author
Forward
0 new messages