# PrintAllObjectsNamesAndClasses keeps giving compiling error

**URL:** <https://forums.unrealengine.com/t/printallobjectsnamesandclasses-keeps-giving-compiling-error/341877>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [December 18, 2015, 11:09pm UTC](https://forums.unrealengine.com/t/printallobjectsnamesandclasses-keeps-giving-compiling-error/341877 "2015-12-18T23:09:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrHero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrHero](https://forums.unrealengine.com/u/MrHero)\
**Post date:** [December 18, 2015, 11:09pm UTC](https://forums.unrealengine.com/t/printallobjectsnamesandclasses-keeps-giving-compiling-error/341877/1 "2015-12-18T23:09:05Z")

</div>

Hello Everyone,

so i have used the function PrintAllObjectsNamesAndClasses once to test then I removed it,  
now every time i compile i get this error  
knowing that when i compile again right after it compiles fine … but i have to do it twice in order to compile it …  
and im not sure if it really compiles fine because i added variables and they are not shown in the editor nor the game when i tried to log the variables.

 ![71206-error.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/6/4464ea63e8a74ac0dfdc77aa41c71691e563d122.png)

here is my variable code just to make sure.

```
	UPROPERTY(EditDefaultsOnly, Category = "PlayerCondition", Replicated)
	float maxHealth;

```

Regards,  
MrHeroC

---

<div class="post-metadata">

**Author:** ![MrHero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrHero](https://forums.unrealengine.com/u/MrHero)\
**Post date:** [December 19, 2015, 10:09am UTC](https://forums.unrealengine.com/t/printallobjectsnamesandclasses-keeps-giving-compiling-error/341877/2 "2015-12-19T10:09:51Z")

</div>

When i remove the “Replicated” in the variable macro i get a successful compiling. but the question is … why?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 21, 2015, 6:44pm UTC](https://forums.unrealengine.com/t/printallobjectsnamesandclasses-keeps-giving-compiling-error/341877/3 "2015-12-21T18:44:36Z")

</div>

Hey MrHero-

Could you explain how you’re using the printAllObjectsNamesAndClasses function or provide the code where the call is made? I have added the variable as you described however I’m not sure how you’re calling/using the function so I’m not sure how to proceed in testing this.

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 28, 2015, 6:35pm UTC](https://forums.unrealengine.com/t/printallobjectsnamesandclasses-keeps-giving-compiling-error/341877/4 "2015-12-28T18:35:28Z")

</div>

Hi MrHero,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.
