# Build errors with slicer

**URL:** https://discourse.slicer.org/t/build-errors-with-slicer/36817
**Category:** Development
**Tags:** build
**Created:** [June 16, 2024, 2:45am UTC](https://discourse.slicer.org/t/build-errors-with-slicer/36817 "2024-06-16T02:45:42Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)
#### Post date: [June 16, 2024, 2:45am UTC](https://discourse.slicer.org/t/build-errors-with-slicer/36817/1 "2024-06-16T02:45:42Z")

</div>

When I compile Slicer, it always shows the following error. I am using the main version from GitHub. Can someone tell me how to solve this problem?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/d/9d02a3874278db9bec14d0f190880304e4c04670.png)

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [August 12, 2024, 11:38am UTC](https://discourse.slicer.org/t/build-errors-with-slicer/36817/2 "2024-08-12T11:38:39Z")

</div>

What is your Windows OS Build Number?  
Visual Studio Version?  
CMake Version?

---

<div class="post-metadata">

### Author: ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)
#### Post date: [August 12, 2024, 11:04pm UTC](https://discourse.slicer.org/t/build-errors-with-slicer/36817/3 "2024-08-12T23:04:10Z")

</div>

Thank you for your response, James. I feel like there are always some strange issues, but I finally solved this one by reinstalling the computer system.

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [August 12, 2024, 11:44pm UTC](https://discourse.slicer.org/t/build-errors-with-slicer/36817/4 "2024-08-12T23:44:20Z")

</div>

> [@jamesobutler](#):
>
> Windows OS Build Number?  
> Visual Studio Version?  
> CMake Version?

Could you provide the versions of these things that you are using with your newly reinstalled operating system? This will provide the community with a known working configuration upon facing this you issue that you reported.

---

<div class="post-metadata">

### Author: ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)
#### Post date: [August 13, 2024, 12:15am UTC](https://discourse.slicer.org/t/build-errors-with-slicer/36817/5 "2024-08-13T00:15:37Z")

</div>

OS: win10 64 19045.4651  
VisualStudio: 2022 LTS 17.6 community  
CMake: 3.29.6

In the meantime, I switched between different versions of Visual Studio and CMake, but the issue remained unresolved. I still believe the problem might be related to the version of Visual Studio rather than CMake. Although reinstalling the system resolved the issue, I’m not sure if upgrading Visual Studio changed something.

I noticed that during that time, the community did discuss some issues related to the latest version of Visual Studio.
