Announcement

Collapse
No announcement yet.

Adding New C++ Class

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Adding New C++ Class

    Good Morning,

    Could you please let me know how I may fix this?

    An error occurred while trying to generate project files.

    Running C:/Program Files/Epic Games/UE_4.22/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="C:/Users/15039/Documents/Unreal Projects/Senior/MyProject3.uproject" -game -rocket -progress
    Discovering modules, targets and source code for project...
    While compiling C:\Program Files\Epic Games\UE_4.22\Engine\Intermediate\Build\BuildRules\UE4Rules.dll:
    c:\Program Files\Epic Games\UE_4.22\Engine\Plugins\MySQLConnectorUE4Plugin-master\Source\MySQLConnectorUE4Plugin\MySQLConnectorUE4Plugin.Build.cs(6,12) : error CS1729: 'UnrealBuildTool.ModuleRules' does not contain a constructor that takes 0 arguments
    c:\Program Files\Epic Games\UE_4.22\Engine\Plugins\MySQLConnectorUE4Plugin-master\Source\MySQLConnectorUE4Plugin\MySQLConnectorUE4Plugin.Build.cs(11,9) : error CS0103: The name 'UEBuildConfiguration' does not exist in the current context
    c:\Program Files\Epic Games\UE_4.22\Engine\Plugins\MySQLConnectorUE4Plugin-master\Source\MySQLConnectorUE4Plugin\MySQLConnectorUE4Plugin.Build.cs(14,3) : error CS0246: The type or namespace name 'FileReference' could not be found (are you missing a using directive or an assembly reference?)
    c:\Program Files\Epic Games\UE_4.22\Engine\Plugins\MySQLConnectorUE4Plugin-master\Source\MySQLConnectorUE4Plugin\MySQLConnectorUE4Plugin.Build.cs(15,3) : error CS0103: The name 'UProjectInfo' does not exist in the current context
    c:\Program Files\Epic Games\UE_4.22\Engine\Plugins\MySQLConnectorUE4Plugin-master\Source\MySQLConnectorUE4Plugin\MySQLConnectorUE4Plugin.Build.cs(18,3) : error CS0246: The type or namespace name 'FileReference' could not be found (are you missing a using directive or an assembly reference?)
    ERROR: Unable to compile source files.


    I appreciate it, thanks.

    Abdullah

    #2
    Hi,
    Could you post your *.build.cs file?
    An example:

    Code:
    using UnrealBuildTool;
    
    public class ProjectName : ModuleRules
    {
        public ProjectName(ReadOnlyTargetRules Target) : base(Target)
        {
            ...

    Comment

    Working...
    X