Cant package my game

Hello i have a problem packaging my game from editor or from visual studio on shipping or debug
I have rebuild UE4.sln on developement editor 1st and build on developement.

Than started to make package the game project.

My errors are.

Error 1 error LNK2001: unresolved external symbol “bool GIsGameAgnosticExe” (?
Error 2 error LNK2001: unresolved external symbol “bool GIsGameAgnosticExe” (?
Error 3 error LNK2001: unresolved external symbol “wchar_t * GGameName” (?GGameName@@3PA_WA)

My game uses a Loading module that builds just fine from visual studio.
And loads fine too with launching the uproject file.

Hello,

Thank you for your report. We were not able to investigate this on the engine version you reported, but there have been many version changes to UE4 since this question was first posted. With a new version of the Engine comes new fixes and it is possible that this issue has changed or may no longer occur. Due to timetable of when this issue was first posted, we are marking this post as resolved for tracking purposes. If you are still experiencing the issue you reported in the current engine version, then please respond to this message with additional information and we will investigate as soon as possible. If you are experiencing a similar, but different issue at this time, could you please submit a new report for it.

Thanks!

We had the same issue in our project. In our case the problem was that we used multiple C++ modules and didn’t make any of them the primary game module. Make sure you have the following line in one of your module’s .cpp files:

IMPLEMENT_PRIMARY_GAME_MODULE(FDefaultGameModuleImpl, <ModuleName>, "<GameName>");

That solved the problem for us.

1 Like