x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Deleting and creating C++ file causes error

Hello!

When I create new project and c++ files in it, it works well - it opens visual studio code (followed THIS instruction). Then I delete created c++ files in Source folder, then delete everything in Binaries folder, then generate project files (followed THIS instruction). But when I try to create new C++ files after all that, I get some errors (watch pics).

I did try removing Intermediate folder, switching to Debug configuration. I've reinstalled OS and it only has UE4, Visual Studio 2017 and Visual Studio Code and still nothing. So I'm wondering maybe its something wrong with the way of deleting files? I'd be very thankful for any help! Thanks!

alt text alt text And here's detailed text:

 Launching UnrealBuildTool... [C:/Program Files/Epic Games/UE_4.21/Engine/Binaries/DotNET/UnrealBuildTool.exe  -ModuleWithSuffix=CopterProject,5038 Win64 Development -TargetType=Editor -Project="D:/YandexDisk/Development/CopterProject/CopterProject.uproject" -FailIfGeneratedCodeChanges -canskiplink "D:/YandexDisk/Development/CopterProject/CopterProject.uproje
 ct" ]
 Performing full C++ include scan (hot reloading a new target)
 Creating makefile for hot reloading CopterProjectEditor (no existing makefile)
 Compiling game modules for hot reload
 Using Visual Studio 2017 14.16.27023 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023) and Windows 10.0.17763.0 SDK (C:\Program Files (x86)\Windows Kits\10).
 Parsing headers for CopterProjectEditor
   Running UnrealHeaderTool "D:\YandexDisk\Development\CopterProject\CopterProject.uproject" "D:\YandexDisk\Development\CopterProject\Intermediate\Build\Win64\CopterProjectEditor\Development\CopterProjectEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed -FailIfGeneratedCodeChanges
 ERROR: 'D:/YandexDisk/Development/CopterProject/Intermediate/Build/Win64/UE4Editor/Inc/CopterProject/Copter.generated.h': Changes to generated code are not allowed - conflicts written to 'D:/YandexDisk/Development/CopterProject/Intermediate/Build/Win64/UE4Editor/Inc/CopterProject/Copter.generated.h.conflict'
 Error: UnrealHeaderTool failed for target 'CopterProjectEditor' (platform: Win64, module info: D:\YandexDisk\Development\CopterProject\Intermediate\Build\Win64\CopterProjectEditor\Development\CopterProjectEditor.uhtmanifest, exit code: OtherCompilationError (5)).
 CompilerResultsLog: New page: Compilation - 11 февр. 2019 г., 21:59:34
 CompilerResultsLog: Performing full C++ include scan (hot reloading a new target)
 CompilerResultsLog: Creating makefile for hot reloading CopterProjectEditor (no existing makefile)
 CompilerResultsLog: Compiling game modules for hot reload
 CompilerResultsLog: Using Visual Studio 2017 14.16.27023 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023) and Windows 10.0.17763.0 SDK (C:\Program Files (x86)\Windows Kits\10).
 CompilerResultsLog: Parsing headers for CopterProjectEditor
 CompilerResultsLog:   Running UnrealHeaderTool "D:\YandexDisk\Development\CopterProject\CopterProject.uproject" "D:\YandexDisk\Development\CopterProject\Intermediate\Build\Win64\CopterProjectEditor\Development\CopterProjectEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed -FailIfGenera
 tedCodeChanges
 CompilerResultsLog: ERROR: 'D:/YandexDisk/Development/CopterProject/Intermediate/Build/Win64/UE4Editor/Inc/CopterProject/Copter.generated.h': Changes to generated code are not allowed - conflicts written to 'D:/YandexDisk/Development/CopterProject/Intermediate/Build/Win64/UE4Editor/Inc/CopterProject/Copter.generated.h.conflict'
 CompilerResultsLog: Error: UnrealHeaderTool failed for target 'CopterProjectEditor' (platform: Win64, module info: D:\YandexDisk\Development\CopterProject\Intermediate\Build\Win64\CopterProjectEditor\Development\CopterProjectEditor.uhtmanifest, exit code: OtherCompilationError (5)).
 LogMainFrame: MainFrame: Module compiling took 26.301 seconds
 LogSlate: Window 'Message' being destroyed
 LogSlate: FSceneViewport::OnFocusLost() reason 2
 LogSlate: Window 'Add C++ Class' being destroyed
 LogSlate: Took 0.001128 seconds to synchronously load lazily loaded font '../../../Engine/Content/Slate/Fonts/DroidSansMono.ttf' (77K)
 



Product Version: UE 4.21
Tags:
снимок.png (24.1 kB)
снимок.png (147.3 kB)
more ▼

asked Feb 11 '19 at 03:02 PM in Using UE4

avatar image

TimDogger
1

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Did you try to compile your project in Visual Studio?

more ▼

answered Feb 11 '19 at 08:25 PM

avatar image

SenseiHaketon
181 4 4 7

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question