Compilation error (root-argparse.py, rootcling-argparse.py) on Windows with VS2022

Thank you. I was struggling…
I had Python 3.11, but faced problem. I anyway tried to reinstall python 3.12. And then tried to install python-dev-tools (without success).
Meanwhile, the errors on the above disappeared(!?).

I still get another 2 errors

Build FAILED.

“C:\root6\root_build4\install.vcxproj” (default target) (1) →
“C:\root6\root_build4\ALL_BUILD.vcxproj” (default target) (3) →
“C:\root6\root_build4\hsimple.vcxproj” (default target) (475) →
“C:\root6\root_build4\onepcm.vcxproj” (default target) (477) →
(CustomBuild target) →
CUSTOMBUILD : error : Parsing Linkdef file etc\dictpch\allLinkDefs.h [C:\root6\root_build4\onepcm.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(247,5): error MSB8066: Custom build for ‘C:
root6\root_build4\CMakeFiles\b882e10d692558c1c8a6499242d37c95\allDict.cxx.pch.rule;C:\root6\root_build4\CMakeFiles\1ceaa174419630c30bd6403e5d73dfb8\onepcm.r
ule’ exited with code 1. [C:\root6\root_build4\onepcm.vcxproj]

0 Warning(s)
2 Error(s)

This seemed similar to Compilation failed: V6.19/01(github master) with VS2019
I re-reinstalled python to c:\python3 (No space in path name). Then, the compilation was successful.

Thank you for your time, Bellenot!

Cheers,
Aki

1 Like