# FSupportedAreaData not exported

**URL:** <https://forums.unrealengine.com/t/fsupportedareadata-not-exported/381897>\
**Category:** AI\
**Tags:** linker, Navigation, unreal-engine, question\
**Created:** [January 16, 2017, 12:20am UTC](https://forums.unrealengine.com/t/fsupportedareadata-not-exported/381897 "2017-01-16T00:20:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon19956301](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon19956301](https://forums.unrealengine.com/u/anon19956301)\
**Post date:** [January 16, 2017, 12:20am UTC](https://forums.unrealengine.com/t/fsupportedareadata-not-exported/381897/1 "2017-01-16T00:20:10Z")

</div>

Currently, FSupportedAreaData is not marked as ENGINE\_API and therefor it leads to an unresolved linker error when trying to use it.

Steps are easy to reproduce:

1. Include Engine in your  
game/plugin/whatever module.build.cs (If it isn’t already there…)
2. Attempt to create FSupportedAreaData instance.
3. Get unresolved linker error.

Why should this be fixed:

1. Creating custom navigation data is rather hard (impossible) without having the ability to add supported areas.

For example, in my current use case I’m deriving from AAbstractNavData to create a custom waypoint graph to be used by Flying AI. I’m fairly sure that adding SupportedAreas is something anyone trying to create custom NavigationData (without circumventing the navigation system entirely) is going to need.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [January 17, 2017, 2:20pm UTC](https://forums.unrealengine.com/t/fsupportedareadata-not-exported/381897/2 "2017-01-17T14:20:34Z")

</div>

Hey zacharymwade,

Could you provide the related code that you’re using to create your FSupportedAreaData instance so I can ensure we’re using the same setup?

---

<div class="post-metadata">

**Author:** ![anon19956301](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon19956301](https://forums.unrealengine.com/u/anon19956301)\
**Post date:** [January 17, 2017, 5:52pm UTC](https://forums.unrealengine.com/t/fsupportedareadata-not-exported/381897/3 "2017-01-17T17:52:46Z")

</div>

Sure, no problem at all. The commented line throws the unresolved linker error.

```
AWaypointGraph::AWaypointGraph() 
{
	RuntimeGeneration = ERuntimeGenerationType::Static;

	if (HasAnyFlags(RF_ClassDefaultObject) == false)
	{
		FindPathImplementation = &FindPath;
		TestPathImplementation = &TestPath;

		FindHierarchicalPathImplementation = &FindHierarchialPath;
		TestHierarchicalPathImplementation = &TestHierarchialPath;

		RaycastImplementation = &Raycast;

		//SupportedAreas.Add(FSupportedAreaData(UNavArea_Default::StaticClass(), WAYPOINTGRAPH_DEFAULT_AREA));
	};
};

```

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [January 17, 2017, 6:55pm UTC](https://forums.unrealengine.com/t/fsupportedareadata-not-exported/381897/4 "2017-01-17T18:55:08Z")

</div>

Thanks for providing the code.

I’ve reproduced your issue and entered a bug report, which you can track using the link below:

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-40739)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

Have a great day!
