# Unresolved external symbol on packaging

**URL:** <https://forums.unrealengine.com/t/unresolved-external-symbol-on-packaging/339172>\
**Category:** Platform & Builds\
**Tags:** unresolved-external-, unreal-engine, packaging-projects, CPP, question\
**Created:** [November 20, 2015, 6:28pm UTC](https://forums.unrealengine.com/t/unresolved-external-symbol-on-packaging/339172 "2015-11-20T18:28:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davixe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davixe](https://forums.unrealengine.com/u/Davixe)\
**Post date:** [November 20, 2015, 6:28pm UTC](https://forums.unrealengine.com/t/unresolved-external-symbol-on-packaging/339172/1 "2015-11-20T18:28:14Z")

</div>

Hi,

When I try to package my game on Debug (development and shipping isn’t neither working, but debug is the only one who shows me an error).  
I got 5 unresolved externals caused by “ghost” code, I called ghost code to functions or lines that i deleted from my .cpp and .h files

This is the error:

```
   Creating library C:\Users\David\Documents\Unreal Projects\Concept\Binaries\Win64\Concept-Win64-DebugGame.lib and object C:\Users\David\Documents\Unreal Projects\Concept\Binaries\Win64\Concept-Win64-DebugGame.exp
Module.Concept.cpp.obj : error LNK2019: unresolved external symbol "public: void __cdecl AConceptCharacter::ConstituteMaterialEffect(void)" (?ConstituteMaterialEffect@AConceptCharacter@@QEAAXXZ) referenced in function "protected: void__cdecl AConceptCharacter::Initializer(void)" (?Initializer@AConceptCharacter@@IEAAXXZ)
Module.Concept.cpp.obj : error LNK2019: unresolved external symbol "protected: void __cdecl AConceptCharacter::SetMovementTo(enum EMovementToEnum::MovementTo)" (?SetMovementTo@AConceptCharacter@@IEAAXW4MovementTo@EMovementToEnum@@@Z) referenced in function "public: void__cdecl AConceptCharacter::MoveRight(float)" (?MoveRight@AConceptCharacter@@QEAAXM@Z)
Concept.generated.cpp.obj : error LNK2019: unresolved external symbol "protected: void __cdecl AConceptCharacter::InitController(void)" (?InitController@AConceptCharacter@@IEAAXXZ) referenced in function "public: void__cdecl AConceptCharacter::execInitController(struct FFrame &,void * const)" (?execInitController@AConceptCharacter@@QEAAXAEAUFFrame@@QEAX@Z)
Concept.generated.cpp.obj : error LNK2019: unresolved external symbol "protected: void __cdecl AConceptCharacter::InitMouse(void)" (?InitMouse@AConceptCharacter@@IEAAXXZ) referenced in function "public: void__cdecl AConceptCharacter::execInitMouse(struct FFrame &,void * const)" (?execInitMouse@AConceptCharacter@@QEAAXAEAUFFrame@@QEAX@Z)
Concept.generated.cpp.obj : error LNK2019: unresolved external symbol "protected: void __cdecl AConceptCharacter::InitGameAttributes(void)" (?InitGameAttributes@AConceptCharacter@@IEAAXXZ) referenced in function "public: void__cdecl AConceptCharacter::execInitGameAttributes(struct FFrame &,void * const)" (?execInitGameAttributes@AConceptCharacter@@QEAAXAEAUFFrame@@QEAX@Z)
C:\Users\David\Documents\Unreal Projects\Concept\Binaries\Win64\Concept-Win64-DebugGame.exe : fatal error LNK1120: 5 unresolved externals

```

But I just deleted the functions like ConstituteMaterialEffect(), SetMovementTo() and Initializer() from everywhere (and my game works well inside the editor) so I don’t understand from where this code is showing up.

thx for the help
