# Linker error when using certain engine functions in a plugin. Possibly missing API\_ENGINE macro?

**URL:** <https://forums.unrealengine.com/t/linker-error-when-using-certain-engine-functions-in-a-plugin-possibly-missing-api_engine-macro/319960>\
**Category:** Plugins\
**Tags:** unreal-engine, bug-report, Plugins, question\
**Created:** [May 27, 2015, 11:03pm UTC](https://forums.unrealengine.com/t/linker-error-when-using-certain-engine-functions-in-a-plugin-possibly-missing-api_engine-macro/319960 "2015-05-27T23:03:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paulop](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Paulop](https://forums.unrealengine.com/u/Paulop)\
**Post date:** [May 27, 2015, 11:03pm UTC](https://forums.unrealengine.com/t/linker-error-when-using-certain-engine-functions-in-a-plugin-possibly-missing-api_engine-macro/319960/1 "2015-05-27T23:03:53Z")

</div>

I am currently developing a plugin that extends the SceneCaptureComponent and SceneCapture classes.

After adding all the required dependencies and paths on the .build.cs, I still ended up with a few linker errors.

After some searching, I found some topics ([here](https://answers.unrealengine.com/questions/234251/cursor-offset-while-simulating.html),[here](https://answers.unrealengine.com/questions/95471/ue-41-cant-inherit-from-fstaticmeshsceneproxy.html) and [here](https://answers.unrealengine.com/questions/88271/unresolved-externals-when-adding-custom-physicsvol.html) ) suggesting that the problem might be a lack of the ENGINE\_API macro on the engine functions’ declaration.

I tried doing that to the PostEditChangeProperty function on SceneCaptureComponent.h, (the first one that gave an error) and the error relating to that function disappeared.

I’m not sure, but I suppose that is the case for the other errors.

The remaining errors, not including the one fixed by what I mentioned, are on the attached file

file link

Thanks in advance!

Paulo

---

<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:** [May 28, 2015, 7:01pm UTC](https://forums.unrealengine.com/t/linker-error-when-using-certain-engine-functions-in-a-plugin-possibly-missing-api_engine-macro/319960/2 "2015-05-28T19:01:35Z")

</div>

Hey Paulop-

If you make the same edits to the other files does that cause the errors to go away? Let me know if doing so helps or if you are still getting errors after adding the macro to the files indicated in the errors.

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:** [June 3, 2015, 3:22pm UTC](https://forums.unrealengine.com/t/linker-error-when-using-certain-engine-functions-in-a-plugin-possibly-missing-api_engine-macro/319960/3 "2015-06-03T15:22:33Z")

</div>

Hey Paulop-

We’ve not heard from you in a few days. I will be marking this post as resolved for tracking purposes however if you’re still having linker errors please feel free to respond and we will continue investigating the issue. When responding let us know if you added the ENGINE\_API macro where the errors indicated and what effects doing so had.

Cheers
