# Syntax error in custom slicer build

**URL:** https://discourse.slicer.org/t/syntax-error-in-custom-slicer-build/23184
**Category:** Support
**Created:** [April 28, 2022, 6:05pm UTC](https://discourse.slicer.org/t/syntax-error-in-custom-slicer-build/23184 "2022-04-28T18:05:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wrx15113330303](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/wrx15113330303/32/15105_2.png) [@wrx15113330303](https://discourse.slicer.org/u/wrx15113330303)
#### Post date: [April 28, 2022, 6:05pm UTC](https://discourse.slicer.org/t/syntax-error-in-custom-slicer-build/23184/1 "2022-04-28T18:05:28Z")

</div>

Hi there, can anyone help me with this problem?  
I am following the instruction in SlicerCAT([https://www.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/](https://www.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/)) to build a custom slicer application. I didn’t modify anything in the source code, but I have these syntax errors reported.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/a/8af7482164ca0f81cbb14579779ca9e71c45720a.png)

I am using VS 2022, CMake 3.23.1, Git 2.35.1, Slicer 4.13

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [April 29, 2022, 10:33am UTC](https://discourse.slicer.org/t/syntax-error-in-custom-slicer-build/23184/2 "2022-04-29T10:33:44Z")

</div>

Without speaking Chinese I can’t make heads or tails from these errors. Since I assume you understand what it ways I suggest starting to fix the top one and I’d ignore the highlighted CMake one for now.

---

<div class="post-metadata">

### Author: ![wrx15113330303](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/wrx15113330303/32/15105_2.png) [@wrx15113330303](https://discourse.slicer.org/u/wrx15113330303)
#### Post date: [April 29, 2022, 10:44am UTC](https://discourse.slicer.org/t/syntax-error-in-custom-slicer-build/23184/3 "2022-04-29T10:44:22Z")

</div>

I have figured out the reason. The custom name can not contain characters like ‘-’ etc.
