Error in C

I have this strange error in C. What can it be?

Do you have the workspace open? Did you do Tools > Refresh VS Code Project after creating the class?

No I didn’t. Whats this and where is it?

In Unreal

No result. But I’ve noticed these messages in vscode. By the way Im on mac

maybe I supposed to use Xcode? But if so, the lecturer messed up at this point. Since paying attention on Mac by telling how to download, he forgot to assist people on Mac to how to connect the project with Xcode

You only need to install Xcode to install the compiler, VS Code can be used on macOS with Unreal.

What does More Info tell you from the bottom prompt? You can probably ignore the first one as that is for debugging specifically.

I downloaded something from their website and nothing particular has changed

one my friend says that it can be circular dependency

I’m a little confused, clicking “More Info” in the screenshot made you download something?

I don’t see how that would have anything to do the dialogue boxes you have.

yea, something like ‘download the most suitable’ something. It was vscode 3 for some reason, but I didn’t notice that anything changed

anyway, do you have any idea about what can it be? I’m kinda furious that I can’t keep going for that long

Could you show the problems window?

Setting up bundled DotNet SDK
/Users/Shared/Epic Games/UE_5.1/Engine/Build/BatchFiles/Mac/…/…/…/Binaries/ThirdParty/DotNet/6.0.302/mac-x64
Running dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll -ModuleWithSuffix=ObstacleAssault,0221 ObstacleAssaultEditor Mac Development -Project=/Users/admin/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject /Users/admin/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject -IgnoreJunk
Log file: /Users/admin/Library/Application Support/Epic/UnrealBuildTool/Log.txt
Invalidating makefile for ObstacleAssaultEditor (working set of source files changed)
/Applications/Xcode.app/Contents/Developer
Parsing headers for ObstacleAssaultEditor
Running Internal UnrealHeaderTool “/Users/admin/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject” “/Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/ObstacleAssaultEditor/Development/ObstacleAssaultEditor.uhtmanifest” -WarningsAsErrors -installed
Total of 0 written
Reflection code generated for ObstacleAssaultEditor in 4.1976121 seconds
Building ObstacleAssaultEditor…
[Upgrade]
[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
[Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
[Upgrade] Suppress this message by setting ‘IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;’ in ObstacleAssaultEditor.Target.cs.
[Upgrade] Alternatively you can set this to ‘EngineIncludeOrderVersion.Latest’ to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
[Upgrade]
Determining max actions to execute in parallel (8 physical cores, 8 logical cores)
Executing up to 8 processes, one per physical core
Requested 1.5 GB free memory per action, 4.4 GB available: limiting max parallel actions to 2
Building 4 actions with 2 processes…
[1/4] WriteMetadata ObstacleAssaultEditor.target cancelled
[2/4] Link UnrealEditor-ObstacleAssault-0221.dylib cancelled
[3/4] Compile movingPlatform.cpp
In file included from /Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:4:
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:31:2: error: unknown type name ‘UPROPPERTY’
UPROPPERTY(EditAnywhere)
^
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:31:26: error: expected ‘;’ at end of declaration list
UPROPPERTY(EditAnywhere)
^
;
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:29:28: error: invalid digit ‘f’ in octal constant
float PlatformDistance = 0f;
^
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:11:2: error: cannot initialize return object of type ‘UObject *’ with an rvalue of type ‘AmovingPlatform *’
GENERATED_BODY()
^~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:698:29: note: expanded from macro ‘GENERATED_BODY’
#define GENERATED_BODY(…) BODY_MACRO_COMBINE(CURRENT_FILE_ID,_,LINE,_GENERATED_BODY);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:693:37: note: expanded from macro ‘BODY_MACRO_COMBINE’
#define BODY_MACRO_COMBINE(A,B,C,D) BODY_MACRO_COMBINE_INNER(A,B,C,D)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:692:43: note: expanded from macro ‘BODY_MACRO_COMBINE_INNER’
#define BODY_MACRO_COMBINE_INNER(A,B,C,D) A##B##C##D
^~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/UnrealEditor/Inc/ObstacleAssault/UHT/movingPlatform.generated.h:85:2: note: expanded from macro ‘FID_admin_Documents_Unreal_Projects_ObstacleAssault_Source_ObstacleAssault_movingPlatform_h_11_GENERATED_BODY’
FID_admin_Documents_Unreal_Projects_ObstacleAssault_Source_ObstacleAssault_movingPlatform_h_11_ENHANCED_CONSTRUCTORS
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/UnrealEditor/Inc/ObstacleAssault/UHT/movingPlatform.generated.h:60:2: note: expanded from macro ‘FID_admin_Documents_Unreal_Projects_ObstacleAssault_Source_ObstacleAssault_movingPlatform_h_11_ENHANCED_CONSTRUCTORS’
DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(AmovingPlatform);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:1785:11: note: expanded from macro ‘DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER’
return new (EC_InternalUseOnlyConstructor, (UObject*)GetTransientPackage(), NAME_None, RF_NeedLoad | RF_ClassDefaultObject | RF_TagGarbageTemp) TClass(Helper);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:17:9: error: cannot initialize object parameter of type ‘AActor’ with an expression of type ‘AmovingPlatform’
Super::BeginPlay();
^~~~~~~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:19:21: error: cannot initialize object parameter of type ‘const AActor’ with an expression of type ‘AmovingPlatform’
StartingLocation = GetActorLocation();
^~~~~~~~~~~~~~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:28:9: error: cannot initialize object parameter of type ‘AActor’ with an expression of type ‘AmovingPlatform’
Super::Tick(DeltaTime);
^~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:31:28: error: cannot initialize object parameter of type ‘const AActor’ with an expression of type ‘AmovingPlatform’
FVector CurrentLocation = GetActorLocation();
^~~~~~~~~~~~~~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:33:2: error: cannot initialize object parameter of type ‘AActor’ with an expression of type ‘AmovingPlatform’
SetActorLocation(CurrentLocation);
^~~~~~~~~~~~~~~~
9 errors generated.
[4/4] Compile movingPlatform.gen.cpp
In file included from /Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/UnrealEditor/Inc/ObstacleAssault/UHT/movingPlatform.gen.cpp:8:
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:31:2: error: unknown type name ‘UPROPPERTY’
UPROPPERTY(EditAnywhere)
^
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:31:26: error: expected ‘;’ at end of declaration list
UPROPPERTY(EditAnywhere)
^
;
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:29:28: error: invalid digit ‘f’ in octal constant
float PlatformDistance = 0f;
^
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:11:2: error: cannot initialize return object of type ‘UObject *’ with an rvalue of type ‘AmovingPlatform *’
GENERATED_BODY()
^~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:698:29: note: expanded from macro ‘GENERATED_BODY’
#define GENERATED_BODY(…) BODY_MACRO_COMBINE(CURRENT_FILE_ID,_,LINE,_GENERATED_BODY);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:693:37: note: expanded from macro ‘BODY_MACRO_COMBINE’
#define BODY_MACRO_COMBINE(A,B,C,D) BODY_MACRO_COMBINE_INNER(A,B,C,D)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:692:43: note: expanded from macro ‘BODY_MACRO_COMBINE_INNER’
#define BODY_MACRO_COMBINE_INNER(A,B,C,D) A##B##C##D
^~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/UnrealEditor/Inc/ObstacleAssault/UHT/movingPlatform.generated.h:85:2: note: expanded from macro ‘FID_admin_Documents_Unreal_Projects_ObstacleAssault_Source_ObstacleAssault_movingPlatform_h_11_GENERATED_BODY’
FID_admin_Documents_Unreal_Projects_ObstacleAssault_Source_ObstacleAssault_movingPlatform_h_11_ENHANCED_CONSTRUCTORS
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/UnrealEditor/Inc/ObstacleAssault/UHT/movingPlatform.generated.h:60:2: note: expanded from macro ‘FID_admin_Documents_Unreal_Projects_ObstacleAssault_Source_ObstacleAssault_movingPlatform_h_11_ENHANCED_CONSTRUCTORS’
DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(AmovingPlatform);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Epic Games/UE_5.1/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h:1785:11: note: expanded from macro ‘DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER’
return new (EC_InternalUseOnlyConstructor, (UObject*)GetTransientPackage(), NAME_None, RF_NeedLoad | RF_ClassDefaultObject | RF_TagGarbageTemp) TClass(Helper);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.

You have misspelled UPROPERTY

Also note this wouldn’t have anything to do with IntelliSense error in your original post.

1 Like

Oh yeah, I see, but look what I get after compilation now

Setting up bundled DotNet SDK
/Users/Shared/Epic Games/UE_5.1/Engine/Build/BatchFiles/Mac/…/…/…/Binaries/ThirdParty/DotNet/6.0.302/mac-x64
Running dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll -ModuleWithSuffix=ObstacleAssault,9900 ObstacleAssaultEditor Mac Development -Project=/Users/admin/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject /Users/admin/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject -IgnoreJunk
Log file: /Users/admin/Library/Application Support/Epic/UnrealBuildTool/Log.txt
Invalidating makefile for ObstacleAssaultEditor (working set of source files changed)
/Applications/Xcode.app/Contents/Developer
Parsing headers for ObstacleAssaultEditor
Running Internal UnrealHeaderTool “/Users/admin/Documents/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject” “/Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/ObstacleAssaultEditor/Development/ObstacleAssaultEditor.uhtmanifest” -WarningsAsErrors -installed
Total of 2 written
Reflection code generated for ObstacleAssaultEditor in 3.7608498 seconds
Building ObstacleAssaultEditor…
[Upgrade]
[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
[Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
[Upgrade] Suppress this message by setting ‘IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;’ in ObstacleAssaultEditor.Target.cs.
[Upgrade] Alternatively you can set this to ‘EngineIncludeOrderVersion.Latest’ to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
[Upgrade]
Determining max actions to execute in parallel (8 physical cores, 8 logical cores)
Executing up to 8 processes, one per physical core
Requested 1.5 GB free memory per action, 3.26 GB available: limiting max parallel actions to 2
Building 5 actions with 2 processes…
[1/5] Compile movingPlatform.cpp
In file included from /Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.cpp:4:
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:29:28: error: invalid digit ‘f’ in octal constant
float PlatformDistance = 0f;
^
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:32:26: error: invalid digit ‘f’ in octal constant
float DistancePassed = 0f;
^
2 errors generated.
[2/5] Compile movingPlatform.gen.cpp
In file included from /Users/admin/Documents/Unreal Projects/ObstacleAssault/Intermediate/Build/Mac/x86_64/UnrealEditor/Inc/ObstacleAssault/UHT/movingPlatform.gen.cpp:8:
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:29:28: error: invalid digit ‘f’ in octal constant
float PlatformDistance = 0f;
^
/Users/admin/Documents/Unreal Projects/ObstacleAssault/Source/ObstacleAssault/movingPlatform.h:32:26: error: invalid digit ‘f’ in octal constant
float DistancePassed = 0f;
^
2 errors generated.
[3/5] Compile ObstacleAssault.init.gen.cpp
[4/5] Link UnrealEditor-ObstacleAssault-9900.dylib cancelled
[5/5] WriteMetadata ObstacleAssaultEditor.target cancelled

I just noticed that there is an error with typing f in the end of the float number. what a heck? I thought it is literate to do that or its only in c#?

There needs to be a . between the 0 and f. 0 is the start of an octal number which is what the error is talking about i.e. 010 should be 8

it is done now, all good. you helped me with uproperty, thank you!

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

Privacy & Terms