Having an issue, with compiling up the Blank plugin, after I have put one Declaration in the default .h file.
Error Messages
1>------ Build started: Project: BcBpLibraryV1_1, Configuration: Development_Editor x64 ------
1> Performing 3 actions (4 in parallel)
1> PCH.BpLibraryTestPrivatePCH.h.cpp
1>G:\Epic.Submission\BcBpLibraryV1_1\Plugins\BpLibraryTest\Source\BpLibraryTest\Public\BpLibraryTest.h(20): error C2143: syntax error : missing ‘;’ before ‘’
1>G:\Epic.Submission\BcBpLibraryV1_1\Plugins\BpLibraryTest\Source\BpLibraryTest\Public\BpLibraryTest.h(20): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1> -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: G:\Epic.Submission\BcBpLibraryV1_1\Plugins\BpLibraryTest\Binaries\Win64\UE4Editor-BpLibraryTest.pdb
1> Total build time: 31.86 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ““G:\unreal4.launch\Epic Games\4.9\Engine\Build\BatchFiles\Build.bat” BcBpLibraryV1_1Editor Win64 Development “G:\Epic.Submission\BcBpLibraryV1_1\BcBpLibraryV1_1.uproject” -rocket -waitmutex” exited with code -1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
UE4 Version: 4.9.2
Visual Studio Version: Visual Studio 2013, Update 5 (same thing occurs with update 4)
Microsoft Visual Studio Express 2013 for Windows Desktop
Version 12.0.40629.00 Update 5
Microsoft .NET Framework
Version 4.5.51209
Installed Version: Desktop Express
Team Explorer for Visual Studio 2013 06157-004-0441005-02641
Microsoft Team Explorer for Visual Studio 2013
Visual Basic 2013 06157-004-0441005-02641
Microsoft Visual Basic 2013
Visual C# 2013 06157-004-0441005-02641
Microsoft Visual C# 2013
Visual C++ 2013 06157-004-0441005-02641
Microsoft Visual C++ 2013
Common Azure Tools 1.4
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
NuGet Package Manager 2.8.60610.756
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Code:
BpLibraryTestPrivatePch.h
// Some copyright should be here...
#include "Engine.h"
#include "BpLibraryTest.h"
// You should place include statements to your module's private header files here. You only need to
// add includes for headers that are used in most of your module's source files though.
BpLibraryTest.h (comments removed)
// Some copyright
#pragma once
#include "ModuleManager.h"
class FBpLibraryTestModule : public IModuleInterface
{
public:
/** IModuleInterface implementation */
virtual void StartupModule() override;
virtual void ShutdownModule() override;
};
UCLASS()
class UIceWareBPLibraryModule : public UBlueprintFunctionLibrary {
/*
File I/O to and write data, as well as support functions, getting directory information, file information,
erasing files, etc.
*/
GENERATED_UCLASS_BODY()
UFUNCTION(BlueprintCallable, Category = "IceWareFileBluePrintLibrary")
static bool IceWareFileWrite_StringsToFile(FString TargetDirectory, FString FileName, FString SingleString,
TArray<FString> StringArray,
bool& AllOk, int32& ReturnCode,
FString& RcMessage, int32& RecordsWritten, int32& ExecTime, bool OverWrite = false,
int32 NumberOfElementsForEachRecord = 1, FString ElementDelimiter = ",", FString NewLine = "\r");
};
Details
If the two statements of UCLASS() and GENERATED_UCLASS_BODY() are removed via commenting out. Then the plugin will compile with no errors. As is evidence here…
1>------ Build started: Project: BcBpLibraryV1_1, Configuration: Development_Editor x64 ------
1> Performing 3 actions (4 in parallel)
1> PCH.BpLibraryTestPrivatePCH.h.cpp
1> BpLibraryTest.cpp
1> [3/3] Link UE4Editor-BpLibraryTest.dll
1> Creating library G:\Epic.Submission\BcBpLibraryV1_1\Plugins\BpLibraryTest\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-BpLibraryTest.lib and object G:\Epic.Submission\BcBpLibraryV1_1\Plugins\BpLibraryTest\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-BpLibraryTest.exp
1> -------- End Detailed Actions Stats -----------------------------------------------------------
1> Total build time: 47.24 seconds
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
I really have no idea what I’m doing wrong. But something certainly has to be wrong, As I cannot see the nodes that i’m attempting to create for use in Blueprints. These errors ocurr no matter what is in the BpLibraryTest.cpp.
If the function is actually implemented, the errors occur, if the function is not there at all, the errors occur.
Hopefully someone can see what I’m doing that is so stupid.
Thank you for your time,