# visual studio shows error but code can be compiled

**URL:** <https://forums.unrealengine.com/t/visual-studio-shows-error-but-code-can-be-compiled/215779>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [December 28, 2017, 9:32am UTC](https://forums.unrealengine.com/t/visual-studio-shows-error-but-code-can-be-compiled/215779 "2017-12-28T09:32:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WoodenAX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WoodenAX](https://forums.unrealengine.com/u/WoodenAX)\
**Post date:** [December 28, 2017, 9:32am UTC](https://forums.unrealengine.com/t/visual-studio-shows-error-but-code-can-be-compiled/215779/1 "2017-12-28T09:32:36Z")

</div>

Hi I am just about to start coding C++ in UE4, the IDE I am using is visual studio 2017 and when I key in the code from some tutorial website it shows that the object pointer “AActor” is a incompleted class? as the picture shows, but the code pass the compiler and engine and it works in game? I wonder why it happens and can anyone give me some clue about how to fix it?
