Ly 1.24 cannot build - Warning as Errors

0

Suddenly this is happening not sure why, I rebuild and now I cannot get rid of:

e:\Amazon\Lumberyard\1.24.0.0\dev\Code\CryEngine\CryCommon\ILevelSystem.h(94): error C2220: the following warning is treated as an error e:\Amazon\Lumberyard\1.24.0.0\dev\Code\CryEngine\CryCommon\ILevelSystem.h(94): warning C5208: unnamed class used in typedef name cannot declare members other than non-static data members, member enumerations, or member classes e:\Amazon\Lumberyard\1.24.0.0\dev\Code\CryEngine\CryCommon\ILevelSystem.h(94): note: to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings

In the meantime I'll reinstall everything... coz I'm blocked.

asked 4 years ago162 views
9 Answers
0
Accepted Answer

They used std::runtime_error in Sandbox's code. Another error for " std::runtime_error " can be solved by add this line in StdAfx.h of Editor module: [Lumberyard_Root]\dev\Code\Sandbox\Editor\StdAfx.h

#include <stdexcept>

answered 4 years ago
0

The code that creates problems is:

typedef struct { string name; string xmlFile; int cgfCount; void GetMemoryUsage(ICrySizer* pSizer) const { pSizer->AddObject(name); pSizer->AddObject(xmlFile); } } TGameTypeInfo;

In C++ you don't need typedef... Solution:

struct TGameTypeInfo
{
    string  name;
    string  xmlFile;
    int         cgfCount;
    void GetMemoryUsage(ICrySizer* pSizer) const
    {
        pSizer->AddObject(name);
        pSizer->AddObject(xmlFile);
    }
};
answered 4 years ago
0

I also added in ObjectManager.cpp: #include <stdexcept>

I'm using VS2019 btw.

answered 4 years ago
0

A lot of people are saying VS2019 is not working for them, if you can try 2017 and see if that fixes any issues. 👍

answered 4 years ago
0

VS2019 works well, just they have few little errors.

@REDACTEDUSER

answered 4 years ago
0

vs2019_fix.patch|attachment (3.3 KB)

FYI, here is my unofficial fix up for VS2019 16.6 on my local system. We will fix it in the next release.

answered 4 years ago
0

hello Thanks ...I did, but there is another problem for me Can you help?

lmbr_create2.txt|attachment (3.8 KB)

answered 4 years ago
0

The @REDACTEDUSER

@REDACTEDUSER

answered 4 years ago
0

Looks like you didn't check VS2017 or VS2019 in SetupAssistant.

answered 4 years ago

This post is closed: Adding new answers, comments, and votes is disabled.