Hi,
I’m just getting started with C++ programming in Unreal Engine 4, and i’m having issues including TCircularBuffer in my source file.
I am currently using Unreal Engine 4.2 preview that i built from source on OSX 10.9.2 and XCode 5.1.1
In my file’s Build.cs file i have
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });
PrivateDependencyModuleNames.AddRange(new string[] { "Core" });
This is the header where i want to use it:
#pragma once
#include "Engine/CanvasRenderTarget2D.h"
#include "Core.h"
#include "MusicRenderTarget2D.generated.h"
/**
*
*/
UCLASS()
class UMusicRenderTarget2D : public UCanvasRenderTarget2D
{
GENERATED_UCLASS_BODY()
UPROPERTY()
TCircularBuffer<uint32> *amplitudeBuffer;
UPROPERTY()
int32 currentBufferPos;
UFUNCTION()
virtual void PushAmplitude(uint32 amplitude);
};
I keep getting Build Failed with the following error:
/Users/freezx/Documents/Unreal Projects/BassDrop/Source/BassDrop/MusicRenderTarget2D.h(18) : Error: In MusicRenderTarget2D: Unrecognized type 'TCircularBuffer'
What could be wrong with the way i include the core classes?
Thanks in advance.