# Problem with nativizing bp's with c++ functions in them

**URL:** <https://forums.unrealengine.com/t/problem-with-nativizing-bps-with-c-functions-in-them/456054>\
**Category:** Blueprint\
**Tags:** nativization, unreal-engine, packaging-projects, Scripting, CPP, Blueprint, question\
**Created:** [September 27, 2019, 4:57am UTC](https://forums.unrealengine.com/t/problem-with-nativizing-bps-with-c-functions-in-them/456054 "2019-09-27T04:57:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_606ba6d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_606ba6d3](https://forums.unrealengine.com/u/anonymous_user_606ba6d3)\
**Post date:** [September 27, 2019, 4:57am UTC](https://forums.unrealengine.com/t/problem-with-nativizing-bps-with-c-functions-in-them/456054/1 "2019-09-27T04:57:35Z")

</div>

I’m having an issue nativizing a bp with a c++ code function inside of it. The function is from a c++ bp library I wrote. it seems to not like the function in question but it works just fine in non nativized builds. any help would be appreciated.

```
LogUObjectHash: Compacting FUObjectHashTables data took 11.63ms
UATHelper: Packaging (Windows (64-bit)): [4/57] Module.NativizedAssets.4_of_27.cpp
UATHelper: Packaging (Windows (64-bit)): [5/57] Module.AdvancedSessions.cpp
UATHelper: Packaging (Windows (64-bit)): [6/57] Module.NativizedAssets.7_of_27.cpp
UATHelper: Packaging (Windows (64-bit)): G:/BackUp/ChessProject/v3.37/CodexOfTimeV0_03/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/Chess_PC__pf1161601214.cpp(6233): error C2248: 'UCodexOfTiemBPFunctionLibrary::AStar': cannot access private member declared in class 'UCodexOfTiemBPFunctionLibrary'
UATHelper: Packaging (Windows (64-bit)): G:\BackUp\ChessProject\v3.37\CodexOfTimeV0_03\Source\CodexOfTimeV0_03/CodexOfTiemBPFunctionLibrary.h(103): note: see declaration of 'UCodexOfTiemBPFunctionLibrary::AStar'
UATHelper: Packaging (Windows (64-bit)): G:\BackUp\ChessProject\v3.37\CodexOfTimeV0_03\Source\CodexOfTimeV0_03/CodexOfTiemBPFunctionLibrary.h(91): note: see declaration of 'UCodexOfTiemBPFunctionLibrary'
UATHelper: Packaging (Windows (64-bit)): G:/BackUp/ChessProject/v3.37/CodexOfTimeV0_03/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/Chess_PC__pf1161601214.cpp(6749): error C2248: 'UCodexOfTiemBPFunctionLibrary::AStar': cannot access private member declared in class 'UCodexOfTiemBPFunctionLibrary'
UATHelper: Packaging (Windows (64-bit)): G:\BackUp\ChessProject\v3.37\CodexOfTimeV0_03\Source\CodexOfTimeV0_03/CodexOfTiemBPFunctionLibrary.h(103): note: see declaration of 'UCodexOfTiemBPFunctionLibrary::AStar'
UATHelper: Packaging (Windows (64-bit)): G:\BackUp\ChessProject\v3.37\CodexOfTimeV0_03\Source\CodexOfTimeV0_03/CodexOfTiemBPFunctionLibrary.h(91): note: see declaration of 'UCodexOfTiemBPFunctionLibrary'
UATHelper: Packaging (Windows (64-bit)): G:/BackUp/ChessProject/v3.37/CodexOfTimeV0_03/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/Chess_PC__pf1161601214.cpp(12892): error C2039: 'Array_Identical': is not a member of 'FCustomThunkTemplates'
UATHelper: Packaging (Windows (64-bit)): C:\Program Files\Epic Games\UE_4.23\Engine\Source\Runtime\Engine\Public\GeneratedCodeHelpers.h(85): note: see declaration of 'FCustomThunkTemplates'
UATHelper: Packaging (Windows (64-bit)): G:/BackUp/ChessProject/v3.37/CodexOfTimeV0_03/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/Chess_PC__pf1161601214.cpp(12892): error C3861: 'Array_Identical': identifier not found
UATHelper: Packaging (Windows (64-bit)): [7/57] Module.NativizedAssets.6_of_27.cpp
UATHelper: Packaging (Windows (64-bit)): G:/BackUp/ChessProject/v3.37/CodexOfTimeV0_03/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/Chess_GM__pf1161601214.cpp(5433): error C2248: 'UCodexOfTiemBPFunctionLibrary::AStar': cannot access private member declared in class 'UCodexOfTiemBPFunctionLibrary'
UATHelper: Packaging (Windows (64-bit)): G:\BackUp\ChessProject\v3.37\CodexOfTimeV0_03\Source\CodexOfTimeV0_03/CodexOfTiemBPFunctionLibrary.h(103): note: see declaration of 'UCodexOfTiemBPFunctionLibrary::AStar'
UATHelper: Packaging (Windows (64-bit)): G:\BackUp\ChessProject\v3.37\CodexOfTimeV0_03\Source\CodexOfTimeV0_03/CodexOfTiemBPFunctionLibrary.h(91): note: see declaration of 'UCodexOfTiemBPFunctionLibrary'
UATHelper: Packaging (Windows (64-bit)): G:/BackUp/ChessProject/v3.37/CodexOfTimeV0_03/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/Chess_GM__pf1161601214.cpp(15101): error C2248: 'UCodexOfTiemBPFunctionLibrary::AStar': cannot access private member declared in class 'UCodexOfTiemBPFunctionLibrary'
UATHelper: Packaging (Windows (64-bit)): G:\BackUp\ChessProject\v3.37\CodexOfTimeV0_03\Source\CodexOfTimeV0_03/CodexOfTiemBPFunctionLibrary.h(103): note: see declaration of 'UCodexOfTiemBPFunctionLibrary::AStar'
UATHelper: Packaging (Windows (64-bit)): G:\BackUp\ChessProject\v3.37\CodexOfTimeV0_03\Source\CodexOfTimeV0_03/CodexOfTiemBPFunctionLibrary.h(91): note: see declaration of 'UCodexOfTiemBPFunctionLibrary'
UATHelper: Packaging (Windows (64-bit)): G:/BackUp/ChessProject/v3.37/CodexOfTimeV0_03/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/Chess_GM__pf1161601214.cpp(17738): error C2039: 'Array_Identical': is not a member of 'FCustomThunkTemplates'
UATHelper: Packaging (Windows (64-bit)): C:\Program Files\Epic Games\UE_4.23\Engine\Source\Runtime\Engine\Public\GeneratedCodeHelpers.h(85): note: see declaration of 'FCustomThunkTemplates'
UATHelper: Packaging (Windows (64-bit)): G:/BackUp/ChessProject/v3.37/CodexOfTimeV0_03/Intermediate/Plugins/NativizedAssets/Windows/Game/Source/NativizedAssets/Private/Chess_GM__pf1161601214.cpp(17738): error C3861: 'Array_Identical': identifier not found
UATHelper: Packaging (Windows (64-bit)): [8/57] Module.NativizedAssets.1_of_27.cpp
UATHelper: Packaging (Windows (64-bit)): [9/57] Module.AdvancedSessions.gen.cpp
UATHelper: Packaging (Windows (64-bit)): [10/57] Module.NativizedAssets.2_of_27.cpp
UATHelper: Packaging (Windows (64-bit)): [11/57] Module.NativizedAssets.5_of_27.cpp
UATHelper: Packaging (Windows (64-bit)): [12/57] Module.NativizedAssets.3_of_27.cpp

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_606ba6d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_606ba6d3](https://forums.unrealengine.com/u/anonymous_user_606ba6d3)\
**Post date:** [September 30, 2019, 7:24pm UTC](https://forums.unrealengine.com/t/problem-with-nativizing-bps-with-c-functions-in-them/456054/2 "2019-09-30T19:24:30Z")

</div>

I figured out the problems. There were 3. The first was that my c++ function needed to be marked as public. The second and third was that for some reason the nativization does not like array comparisons. I just went to the functions described and got rid of does Array01 == Array02? . Hope this is helpful to others.
