x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Linker Errors LNK2001 & LNK2019 when packaging the project

Hi,

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.

link text

Product Version: UE 4.20
Tags:
more ▼

asked Feb 07 '19 at 04:32 AM in Using UE4

avatar image

Nikhil_04
26 3 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

I think this means, that you have a function in your header file that doesn't exist in your cpp file.

more ▼

answered Feb 07 '19 at 12:45 PM

avatar image

SenseiHaketon
186 5 7 9

avatar image Nikhil_04 Feb 07 '19 at 01:09 PM

But, I'm able to build the project in Editor. If the function definition was missing, it would have raised the same error then and there..

avatar image SenseiHaketon Feb 07 '19 at 01:13 PM

Then show me your code for the functions the error is occuring. .h and .cpp :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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?

more ▼

answered Feb 07 '19 at 07:14 PM

avatar image

Nikhil_04
26 3 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question