InsightSoftwareConsortium / ITK

Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
https://itk.org
Apache License 2.0
1.37k stars 660 forks source link

Error C1001 An internal error has occurred in the compiler. #4618

Open xem123 opened 2 months ago

xem123 commented 2 months ago

I have compiled itk and rtk and created a small example in visual studio, but I got an error,both in debug and release. What's the reason?The version I use is listed below: cmake=3.20.1 visual studio 2017 ITK=5.3.0 moudle_RTK=on Module_RTK_GIT_TAG=3f0aa3145d03b8cbc7c6d44bbfd03728b531909c fftw-3.3.5-dll64 image

github-actions[bot] commented 2 months ago

Thank you for contributing an issue! 🙏

Welcome to the ITK community! 🤗👋☀️

We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. 📜 Also, please check existing open issues and consider discussion on the ITK Discourse. 📖

This is an automatic message. Allow for time for the ITK community to be able to read the issue and comment on it.

dzenanz commented 2 months ago

We dropped support for Visual Studio 2017 some time ago. I believe those compiler bugs were the primary reason. @N-Dekker is that right?

Solution: either use an older version of ITK, or a newer version of Visual Studio.

xem123 commented 2 months ago

We dropped support for Visual Studio 2017 some time ago. I believe those compiler bugs were the primary reason. @N-Dekker is that right?

Solution: either use an older version of ITK, or a newer version of Visual Studio. image image

Hello, I want to compile the ITK library and the RTK library. I have successfully compiled using cmake, and completed build and install. However, when I place the compiled libraries into my project, I get compilation errors. What could be the cause?The version I use is listed below: cmake=3.24.0 visual studio 2022 ITK=5.3.0 moudle_RTK=on fftw-3.3.5-dll64 I am in a hurry, thank you!

thewtex commented 1 month ago

A consistent version of Visual Studio (and the VC toolchain used) is required.