File "BullCowCartridge.h" #include has ERROR

Computer: Mac
Epic Version: 4.25.1
Udemy Sections: Bulls & Cows
C++ IDE: VS

Screenshot of file BullCowCartridge.cpp

Screenshot of file BullCowCartridge.h



I am not able to compile in Epic, below is the error:

Running Mono…

Running bundled mono, version: Mono JIT compiler version 5.16.0.220 (2018-06/bb3ae37d71a Fri Nov 16 17:12:11 EST 2018)
~/Epic Games/UE_4.25/Engine ~/Epic Games/UE_4.25/Engine/Binaries/Mac
Creating makefile for BullCowGameEditor (no existing makefile)
Parsing headers for BullCowGameEditor
Running UnrealHeaderTool “/Users/sky/Undemy_Unreal_Project/BullCowGame-starter-kit 4.25/BullCowGame.uproject” “/Users/sky/Undemy_Unreal_Project/BullCowGame-starter-kit 4.25/Intermediate/Build/Mac/BullCowGameEditor/Development/BullCowGameEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -abslog="/Users/sky/Library/Application Support/Epic/UnrealBuildTool/Log_UHT.txt" -installed
Reflection code generated for BullCowGameEditor in 14.2777308 seconds
Building BullCowGameEditor…
[Upgrade]
[Upgrade] Using backward-compatible build settings. The latest version of UE4 sets the following values by default, which may require code changes:
[Upgrade] bLegacyPublicIncludePaths = false => Omits subfolders from public include paths to reduce compiler command line length. (Previously: true).
[Upgrade] ShadowVariableWarningLevel = WarningLevel.Error => Treats shadowed variable warnings as errors. (Previously: WarningLevel.Warning).
[Upgrade] PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs => Set in build.cs files to enables IWYU-style PCH model. See https://docs.unrealengine.com/en-US/Programming/BuildTools/UnrealBuildTool/IWYU/index.html. (Previously: PCHUsageMode.UseSharedPCHs).
[Upgrade] Suppress this message by setting ‘DefaultBuildSettings = BuildSettingsVersion.V2;’ in BullCowGameEditor.Target.cs, and explicitly overriding settings that differ from the new defaults.
[Upgrade]
Performing 4 actions (8 in parallel)
[1/4] Compile BullCowCartridge.cpp
[2/4] Compile BullCowCartridge.gen.cpp
In file included from /Users/sky/Undemy_Unreal_Project/BullCowGame-starter-kit 4.25/Source/BullCowGame/BullCowCartridge.cpp:2:
/Users/sky/Undemy_Unreal_Project/BullCowGame-starter-kit 4.25/Source/BullCowGame/BullCowCartridge.h:5:10: fatal error: ‘CoreMincimal.h’ file not found
#include “CoreMincimal.h”
^~~~~~~~~~~~~~~~
In file included from /Users/sky/Undemy_Unreal_Project/BullCowGame-starter-kit 4.25/Intermediate/Build/Mac/UE4Editor/Inc/BullCowGame/BullCowCartridge.gen.cpp:8:
/Users/sky/Undemy_Unreal_Project/BullCowGame-starter-kit 4.25/Source/BullCowGame/BullCowCartridge.h:5:10: fatal error: ‘CoreMincimal.h’ file not found
#include “CoreMincimal.h”
^~~~~~~~~~~~~~~~
1 error generated.
1 error generated.

Looks like you have a typo : ‘CoreMincimal.h’ assuming : ‘CoreMinimal.h’ file not found

Thanks @Karlockhart, after I removed C letter, then I closed VS, went to Epic -> File -> Refresh Visual Studio Project , then Open Visual Studio Code.
The errors are gone.

After awhile, the same errors occur again … …

There’s a typo here Mincimal

I have removed the C, it is still shows that.

Doesn’t seem like a compilation error.

It compiles , but just can’t get rid of these errors.

That would be the 4.25 VS Code bug mentioned in your other post.

what do you mean 4.25 VS code bug?

The video in the FB post goes over the bug in Unreal with its VS Code project generation.
Could you post your defines?

Where I can find my defines?

In the c_cpp_properties.json which you should have already modified.

Hi Dan, I just want to double check, the video u mentioned is : https://www.gamedev.tv/courses/learn-unreal-engine-c-developer-4-22-for-video-game-development/lectures/17467871
and I don’t see it mentions to modify c_cpp_properties.json file.

And I tried to search file c_cpp_properties.json, I can’t find it.

uhhh… That’s not the right video. I’ll ask to see what’s up with that. Do you have the course on Udemy by any chance?

Nevermind, it’s incorrect there too…

Are you still using 4.25 or did you stay downgraded?

Thanks for @DanM help. This problem is solved finally.
This is a bug of UE 4.25 of Mac user only
Follow below steps to solve this issue by:
Go to your VS code. On your left choose

BullCowGame -> .vscode -> c_cpp_properties.json

image

Open file c_cpp_properties.json

near the bottom of this file you should see a line of code:
defines[ ]

which is an empty array.
Copy below codes to this array, then your problem will be solved.

                "IS_PROGRAM=0",
                "UE_EDITOR=1",
                "HAS_METAL=1",
                "ENABLE_PGO_PROFILE=0",
                "USE_VORBIS_FOR_STREAMING=1",
                "WITH_DEV_AUTOMATION_TESTS=1",
                "WITH_PERF_AUTOMATION_TESTS=1",
                "UNICODE",
                "_UNICODE",
                "__UNREAL__",
                "IS_MONOLITHIC=0",
                "WITH_ENGINE=1",
                "WITH_UNREAL_DEVELOPER_TOOLS=1",
                "WITH_APPLICATION_CORE=1",
                "WITH_COREUOBJECT=1",
                "USE_STATS_WITHOUT_ENGINE=0",
                "WITH_PLUGIN_SUPPORT=0",
                "WITH_PERFCOUNTERS=1",
                "USE_LOGGING_IN_SHIPPING=0",
                "WITH_LOGGING_TO_MEMORY=0",
                "USE_CACHE_FREED_OS_ALLOCS=1",
                "USE_CHECKS_IN_SHIPPING=0",
                "WITH_EDITOR=1",
                "WITH_SERVER_CODE=1",
                "WITH_CEF3=1",
                "WITH_LIVE_CODING=0",
                "WITH_XGE_CONTROLLER=0",
                "UBT_MODULE_MANIFEST=\"UE4Editor.modules\"",
                "UBT_MODULE_MANIFEST_DEBUGGAME=\"UE4Editor-Mac-DebugGame.modules\"",
                "UBT_COMPILED_PLATFORM=Mac",
                "UBT_COMPILED_TARGET=Editor",
                "UE_APP_NAME=\"UE4Editor\"",
                "PLATFORM_MAC=1",
                "PLATFORM_APPLE=1",
                "WITH_TTS=0",
                "WITH_SPEECH_RECOGNITION=0",
                "NDEBUG=1",
                "UE_BUILD_DEVELOPMENT=1",
                "UE_IS_ENGINE_MODULE=0",
                "UE_PROJECT_NAME=BullCowGame",
                "IMPLEMENT_ENCRYPTION_KEY_REGISTRATION()=",
                "IMPLEMENT_SIGNING_KEY_REGISTRATION()=",
                "DEPRECATED_FORGAME=DEPRECATED",
                "UE_DEPRECATED_FORGAME=UE_DEPRECATED",
                "INCLUDE_CHAOS=0",
                "WITH_PHYSX=1",
                "WITH_CHAOS=0",
                "PHYSICS_INTERFACE_LLIMMEDIATE=0",
                "PHYSICS_INTERFACE_PHYSX=1",
                "WITH_APEX=1",
                "WITH_APEX_CLOTHING=1",
                "WITH_CLOTH_COLLISION_DETECTION=1",
                "WITH_PHYSX_COOKING=1",
                "WITH_NVCLOTH=1",
                "WITH_CUSTOM_SQ_STRUCTURE=0",
                "WITH_IMMEDIATE_PHYSX=0",
                "GPUPARTICLE_LOCAL_VF_ONLY=0",
                "ENGINE_API=",
                "UE_ENABLE_ICU=1",
                "WITH_DIRECTXMATH=0",
                "WITH_MALLOC_STOMP=1",
                "CORE_API=",
                "COREUOBJECT_API=",
                "APPLICATIONCORE_API=",
                "RHI_API=",
                "JSON_API=",
                "WITH_FREETYPE=1",
                "SLATECORE_API=",
                "INPUTCORE_API=",
                "SLATE_API=",
                "WITH_UNREALPNG=1",
                "WITH_UNREALJPEG=1",
                "WITH_UNREALEXR=1",
                "IMAGEWRAPPER_API=",
                "MESSAGING_API=",
                "MESSAGINGCOMMON_API=",
                "RENDERCORE_API=",
                "SOCKETS_PACKAGE=1",
                "SOCKETS_API=",
                "UTILITYSHADERS_API=",
                "ASSETREGISTRY_API=",
                "ENGINEMESSAGES_API=",
                "ENGINESETTINGS_API=",
                "SYNTHBENCHMARK_API=",
                "RENDERER_API=",
                "GAMEPLAYTAGS_API=",
                "PACKETHANDLER_API=",
                "RELIABILITYHANDLERCOMPONENT_API=",
                "AUDIOPLATFORMCONFIGURATION_API=",
                "MESHDESCRIPTION_API=",
                "PAKFILE_API=",
                "RSA_API=",
                "WITH_RECAST=1",
                "UNREALED_API=",
                "BSPMODE_API=",
                "DIRECTORYWATCHER_API=",
                "DOCUMENTATION_API=",
                "LOAD_PLUGINS_FOR_TARGET_PLATFORMS=1",
                "PROJECTS_API=",
                "SANDBOXFILE_API=",
                "EDITORSTYLE_API=",
                "SOURCE_CONTROL_WITH_SLATE=1",
                "SOURCECONTROL_API=",
                "UNREALEDMESSAGES_API=",
                "GAMEPLAYDEBUGGER_API=",
                "BLUEPRINTGRAPH_API=",
                "EDITORSUBSYSTEM_API=",
                "HTTP_PACKAGE=1",
                "WITH_LIBCURL=0",
                "HTTP_API=",
                "UNREALAUDIO_API=",
                "FUNCTIONALTESTING_API=",
                "AUTOMATIONCONTROLLER_API=",
                "LOCALIZATION_API=",
                "WITH_SNDFILE_IO=0",
                "AUDIOEDITOR_API=",
                "LEVELEDITOR_API=",
                "SETTINGS_API=",
                "INTROTUTORIALS_API=",
                "HEADMOUNTEDDISPLAY_API=",
                "VREDITOR_API=",
                "COMMONMENUEXTENSIONS_API=",
                "LANDSCAPE_API=",
                "PROPERTYEDITOR_API=",
                "ACTORPICKERMODE_API=",
                "SCENEDEPTHPICKERMODE_API=",
                "DETAILCUSTOMIZATIONS_API=",
                "CLASSVIEWER_API=",
                "GRAPHEDITOR_API=",
                "CONTENTBROWSER_API=",
                "ENABLE_HTTP_FOR_NFS=1",
                "NETWORKFILESYSTEM_API=",
                "UMG_API=",
                "MOVIESCENE_API=",
                "TIMEMANAGEMENT_API=",
                "MOVIESCENETRACKS_API=",
                "ANIMATIONCORE_API=",
                "PROPERTYPATH_API=",
                "NAVIGATIONSYSTEM_API=",
                "MESHDESCRIPTIONOPERATIONS_API=",
                "MESHBUILDER_API=",
                "MATERIALSHADERQUALITYSETTINGS_API=",
                "COLLECTIONMANAGER_API=",
                "ADDCONTENTDIALOG_API=",
                "USE_EMBREE=1",
                "MESHUTILITIES_API=",
                "MESHMERGEUTILITIES_API=",
                "HIERARCHICALLODUTILITIES_API=",
                "MESHREDUCTIONINTERFACE_API=",
                "ASSETTOOLS_API=",
                "KISMETCOMPILER_API=",
                "GAMEPLAYTASKS_API=",
                "WITH_GAMEPLAY_DEBUGGER=1",
                "AIMODULE_API=",
                "KISMET_API=",
                "CLOTHINGSYSTEMRUNTIMEINTERFACE_API=",
                "NETWORKREPLAYSTREAMING_API=",
                "AUDIOMIXER_API=",
                "BULLCOWGAME_API="

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms