Download

Can't create Blueprint Plugin

HI, I’m trying to build a Blueprint Plugin in an unreal 4.12.5 project, but when I try to
compile, even if I try only with unreal standard code I get lot of errors; the plugin is called WindStarz


2>  Module.WindStarz.cpp
2>  WindStarz.generated.cpp
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarzBPLibrary.generated.h(16): error C2007: #define syntax
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarzBPLibrary.generated.h(28): error C2007: #define syntax
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarzBPLibrary.generated.h(40): error C2007: #define syntax
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarzBPLibrary.generated.h(51): error C2007: #define syntax
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarzBPLibrary.generated.h(62): error C2007: #define syntax
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarzBPLibrary.generated.h(74): error C2007: #define syntax
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarzBPLibrary.generated.h(86): error C2007: #define syntax
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarzBPLibrary.generated.h(87): error C2007: #define syntax
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarzBPLibrary.generated.h(97): error C2007: #define syntax
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Source\WindStarz\Public\WindStarzBPLibrary.h(25): error C2059: syntax error: 'user-defined literal'
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Source\WindStarz\Public\WindStarzBPLibrary.h(26): error C2059: syntax error: 'public'
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Source\WindStarz\Public\WindStarzBPLibrary.h(27): error C2143: syntax error: missing ';' before '{'
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Source\WindStarz\Public\WindStarzBPLibrary.h(27): error C2447: '{': missing function header (old-style formal list?)
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Source\WindStarz\Private\WindStarzBPLibrary.cpp(6): error C2653: 'UWindStarzBPLibrary': is not a class or namespace name
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Source\WindStarz\Private\WindStarzBPLibrary.cpp(7): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Source\WindStarz\Private\WindStarzBPLibrary.cpp(8): error C2550: 'UWindStarzBPLibrary': constructor initializer lists are only allowed on constructor definitions
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Source\WindStarz\Private\WindStarzBPLibrary.cpp(10): error C4508: 'UWindStarzBPLibrary': function should return a value; 'void' return type assumed
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Source\WindStarz\Private\WindStarzBPLibrary.cpp(12): error C2653: 'UWindStarzBPLibrary': is not a class or namespace name
2>e:\_windstarz\07unrealwstarzcanyon v9.3.5\07unrealwstarzcanyon v9.3.5\plugins\windstarz\intermediate\build\win64\ue4editor\inc\windstarz\WindStarzBPLibrary.generated.h(16): error C2007: #define syntax
2>e:\_windstarz\07unrealwstarzcanyon v9.3.5\07unrealwstarzcanyon v9.3.5\plugins\windstarz\intermediate\build\win64\ue4editor\inc\windstarz\WindStarzBPLibrary.generated.h(28): error C2007: #define syntax
2>e:\_windstarz\07unrealwstarzcanyon v9.3.5\07unrealwstarzcanyon v9.3.5\plugins\windstarz\intermediate\build\win64\ue4editor\inc\windstarz\WindStarzBPLibrary.generated.h(40): error C2007: #define syntax
2>e:\_windstarz\07unrealwstarzcanyon v9.3.5\07unrealwstarzcanyon v9.3.5\plugins\windstarz\intermediate\build\win64\ue4editor\inc\windstarz\WindStarzBPLibrary.generated.h(51): error C2007: #define syntax
2>e:\_windstarz\07unrealwstarzcanyon v9.3.5\07unrealwstarzcanyon v9.3.5\plugins\windstarz\intermediate\build\win64\ue4editor\inc\windstarz\WindStarzBPLibrary.generated.h(62): error C2007: #define syntax
2>e:\_windstarz\07unrealwstarzcanyon v9.3.5\07unrealwstarzcanyon v9.3.5\plugins\windstarz\intermediate\build\win64\ue4editor\inc\windstarz\WindStarzBPLibrary.generated.h(74): error C2007: #define syntax
2>e:\_windstarz\07unrealwstarzcanyon v9.3.5\07unrealwstarzcanyon v9.3.5\plugins\windstarz\intermediate\build\win64\ue4editor\inc\windstarz\WindStarzBPLibrary.generated.h(86): error C2007: #define syntax
2>e:\_windstarz\07unrealwstarzcanyon v9.3.5\07unrealwstarzcanyon v9.3.5\plugins\windstarz\intermediate\build\win64\ue4editor\inc\windstarz\WindStarzBPLibrary.generated.h(87): error C2007: #define syntax
2>e:\_windstarz\07unrealwstarzcanyon v9.3.5\07unrealwstarzcanyon v9.3.5\plugins\windstarz\intermediate\build\win64\ue4editor\inc\windstarz\WindStarzBPLibrary.generated.h(97): error C2007: #define syntax
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Source\WindStarz\Public/WindStarzBPLibrary.h(25): error C2059: syntax error: 'user-defined literal'
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Source\WindStarz\Public/WindStarzBPLibrary.h(26): error C2059: syntax error: 'public'
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Source\WindStarz\Public/WindStarzBPLibrary.h(27): error C2143: syntax error: missing ';' before '{'
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Source\WindStarz\Public/WindStarzBPLibrary.h(27): error C2447: '{': missing function header (old-style formal list?)
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(12): error C2653: 'UWindStarzBPLibrary': is not a class or namespace name
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(14): error C2653: 'UWindStarzBPLibrary': is not a class or namespace name
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(14): error C3861: 'StaticClass': identifier not found
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(14): error C2065: 'execWindStarzSampleFunction': undeclared identifier
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(16): error C2065: 'UWindStarzBPLibrary': undeclared identifier
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(16): error C2923: 'TClassCompiledInDefer': 'UWindStarzBPLibrary' is not a valid template type argument for parameter 'TClass'
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(16): error C2514: 'TClassCompiledInDefer': class has no constructors
2>  c:\program files (x86)\epic games\4.12\engine\source\runtime\coreuobject\public\uobject\UObjectBase.h(296): note: see declaration of 'TClassCompiledInDefer'
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(16): error C2653: 'UWindStarzBPLibrary': is not a class or namespace name
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(16): error C2065: 'StaticClassFlags': undeclared identifier
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(16): error C3861: 'StaticClassCastFlags': identifier not found
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(16): error C3861: 'StaticConfigName': identifier not found
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(16): error C2440: 'type cast': cannot convert from 'void (__cdecl *)(const FObjectInitializer &)' to 'UClass::ClassConstructorType'
2>  E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(16): note: None of the functions with this name in scope match the target type
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(16): error C2440: 'type cast': cannot convert from 'UObject *(__cdecl *)(FVTableHelper &)' to 'UClass::ClassVTableHelperCtorCallerType'
2>  E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(16): note: None of the functions with this name in scope match the target type
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(16): error C2065: 'AddReferencedObjects': undeclared identifier
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(16): error C2065: 'StaticClass': undeclared identifier
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(53): error C2653: 'UWindStarzBPLibrary': is not a class or namespace name
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(53): error C3861: 'StaticClass': identifier not found
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(62): error C2653: 'UWindStarzBPLibrary': is not a class or namespace name
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(62): error C3861: 'StaticClass': identifier not found
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(83): error C2653: 'UWindStarzBPLibrary': is not a class or namespace name
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(83): error C2065: 'StaticClass': undeclared identifier
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(84): error C2653: 'UWindStarzBPLibrary': is not a class or namespace name
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(84): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(84): error C2550: 'UWindStarzBPLibrary': constructor initializer lists are only allowed on constructor definitions
2>E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Intermediate\Build\Win64\UE4Editor\Inc\WindStarz\WindStarz.generated.cpp(84): error C4508: 'UWindStarzBPLibrary': function should return a value; 'void' return type assumed
2>ERROR : UBT error : Failed to produce item: E:\_windstarz\07UnrealWStarzCanyon v9.3.5\07UnrealWStarzCanyon v9.3.5\Plugins\WindStarz\Binaries\Win64\UE4Editor-WindStarz.dll

Can someone help me?
Thanks!

Solved, it was the 07 in the name of the directory. Never use numbers at the beginning of your root folder! :slight_smile:

4 Likes

OMG Thank you.
I that worked for me. I wish i’d known that earlier!
Given that this is still an issue in 2020… am I to assume that this is one of those bugs that nobody cares about and everyone ‘just knows’?
As a newcommer to unreal engine (and having been out of c++ prograamming for some time) this bug caused me alot of grief.

1 Like

Thank you so much for this Jobim!

It’s especially painful when using Teamcity for building your game, because that POS uses randomly-generated folders with leading numbers as root directory, which will bork all the custom defines used in the generated.h files.

this is a how do I use my compiler and computer question.

Has nothing to do with unreal.

Please keep the chatter to a minimum. Or people like me that actually answer questions will leave.

:wink:

Your post helped me so much, thank you!
P.S. Seeing comments like this makes me feel relieved that I`m not alone :sweat_smile:

would you help me how to make blueprint plugins?