Linker Errors LNK2001 & LNK2019 when packaging the project
I have just finished the development of my game and want to package it for the windows (64-bit). However, when I try to run the packaging process, it fails with linker errors unresolved symbols. But, the weird thing is that the game is compiling and running fine in the editor.
I have included the packaging logs below. Has anyone experienced this before? Any help will be appreciated.
asked Feb 07 '19 at 04:32 AM in Using UE4
I think this means, that you have a function in your header file that doesn't exist in your cpp file.
answered Feb 07 '19 at 12:45 PM
Thank you for your time and effort, but I've figured out what was I doing wrong.
So, what was happening was that the methods for which I was getting the linker errors, were declared as 'inline' but due to some reason I defined them in the .cpp file. Because of that the linker was not able to find the function definitions for those function while packaging.
This brings another doubt. Why didn't the linker raise that error when compiling in the editor? Does this mean that the linker's functioning is somehow different for both the operations?? Or is it a Bug?
answered Feb 07 '19 at 07:14 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here