Download

Can someone explain me problem with adding C++ class?

Hello, here part of log with errors while creating C++ class

Running D:/UE/UE_4.22/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“D:/Projects/Puzzle2Colors/Puzzle2Colors.uproject” -game -rocket -progress
Discovering modules, targets and source code for project…
Binding IntelliSense data…
Binding IntelliSense data… 100%
Writing project files…
Writing project files… 100%
LogHotReload: Recompiling module Puzzle2Colors…
LogVSAccessor: Warning: Couldn’t access Visual Studio
Candidate modules for hot reload:
Puzzle2Colors
Launching UnrealBuildTool… [D:/UE/UE_4.22/Engine/Binaries/DotNET/UnrealBuildTool.exe -ModuleWithSuffix=Puzzle2Colors,7600 Win64 Development -TargetType=Editor -Project=“D:/Projects/Puzzle2Colors/Puzzle2Colors.uproject” -FailIfGeneratedCodeChanges “D:/Projects/Puzzle2Colors/Puzzle2Colors.uproject” -IgnoreJunk]
Creating makefile for Puzzle2ColorsEditor (no existing makefile)
Parsing headers for Puzzle2ColorsEditor
Running UnrealHeaderTool “D:\Projects\Puzzle2Colors\Puzzle2Colors.uproject” “D:\Projects\Puzzle2Colors\Intermediate\Build\Win64\Puzzle2ColorsEditor\Development\Puzzle2ColorsEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed -FailIfGeneratedCodeChanges
ERROR: ‘D:/Projects/Puzzle2Colors/Intermediate/Build/Win64/UE4Editor/Inc/Puzzle2Colors/IntSpinBox.generated.h’: Changes to generated code are not allowed - conflicts written to ‘D:/Projects/Puzzle2Colors/Intermediate/Build/Win64/UE4Editor/Inc/Puzzle2Colors/IntSpinBox.generated.h.conflict’
CompilerResultsLog: New page: Compilation - 11 dec. 2019 y., 4:59:26
CompilerResultsLog: Creating makefile for Puzzle2ColorsEditor (no existing makefile)
CompilerResultsLog: Parsing headers for Puzzle2ColorsEditor
CompilerResultsLog: Running UnrealHeaderTool “D:\Projects\Puzzle2Colors\Puzzle2Colors.uproject” “D:\Projects\Puzzle2Colors\Intermediate\Build\Win64\Puzzle2ColorsEditor\Development\Puzzle2ColorsEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed -FailIfGeneratedCodeChanges
CompilerResultsLog: ERROR: ‘D:/Projects/Puzzle2Colors/Intermediate/Build/Win64/UE4Editor/Inc/Puzzle2Colors/IntSpinBox.generated.h’: Changes to generated code are not allowed - conflicts written to ‘D:/Projects/Puzzle2Colors/Intermediate/Build/Win64/UE4Editor/Inc/Puzzle2Colors/IntSpinBox.generated.h.conflict’
LogMainFrame: MainFrame: Module compiling took 16.945 seconds
LogSlate: Window ‘Message’ being destroyed
LogSlate: Window ‘Add C++ Class’ being destroyed
LogSlate: Took 0.023808 seconds to synchronously load lazily loaded font ‘…/…/…/Engine/Content/Slate/Fonts/DroidSansMono.ttf’ (77K)

It second project, I dont get this error. What I did before this error:

And after this, I start to get this error message.

Still can’t find a solution.

Hmm, looks like all works fine now. I enabled in Visual Studio “Desktop development with .NET”, and “Game development with C++”, how say Zeblote here https://forums.unrealengine.com/deve…-new-c-project . But why without them I can create C++ classes in other projects witout errors …