# PythonQt unnamed \`typedef\` build warning

**URL:** <https://discourse.slicer.org/t/pythonqt-unnamed-typedef-build-warning/33501>\
**Category:** Development\
**Tags:** build, warning, pythonqt\
**Created:** [December 22, 2023, 1:06pm UTC](https://discourse.slicer.org/t/pythonqt-unnamed-typedef-build-warning/33501 "2023-12-22T13:06:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhlegarreta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jhlegarreta/32/66542_2.png) [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Post date:** [December 22, 2023, 1:06pm UTC](https://discourse.slicer.org/t/pythonqt-unnamed-typedef-build-warning/33501/1 "2023-12-22T13:06:43Z")

</div>

Hi,  
I am wondering about the plans to update the PythonQt version so that the below warning can be removed from all builds, including the extensions:

```auto
D:\D\P\S-0-build\CTK-build\CMakeExternals\Install\include\PythonQt\PythonQtClassWrapper.h(66,16): warning C5208: unnamed class used in typedef name cannot declare members other than non-static data members, member enumerations, or member classes (compiling source file D:\D\P\S-0-build\CTK-build\CTK-build\Libs\Core\generated_cpp\org_commontk_CTKCore\org_commontk_CTKCore_module_init.cpp) [D:\D\P\S-0-build\CTK-build\CTK-build\Libs\Core\CTKCorePythonQt.vcxproj] [D:\D\P\S-0-build\CTK-build\CTK.vcxproj] [D:\D\P\S-0-build\CTK.vcxproj]

```

It can be seen in e.g. [CDash](https://slicer.cdash.org/viewBuildError.php?type=1&buildid=3246386) (Items per page: All; look for: C5208)

If I’m not mistaken PythonQt is pulled from  
[GitHub - MeVisLab/pythonqt: Dynamic Python binding for Qt Applications](https://github.com/MeVisLab/pythonqt)

The issues seems to have been solved 2 years ago:

- issue: [Fix a C++20 compatibility issue with an unnamed struct (P1766R1) by ClaudioHoffmann · Pull Request #47 · MeVisLab/pythonqt · GitHub](https://github.com/MeVisLab/pythonqt/pull/47)
- fix commit: [Make this a proper C++ struct · MeVisLab/pythonqt@fa274d2 · GitHub](https://github.com/MeVisLab/pythonqt/commit/fa274d2a82ee2be43a39491dde0a05cf9569fad4)

Seems like it will be an error in C++20.

Thank you
