# Link error using GetVectorParameterByName in C++

**URL:** <https://forums.unrealengine.com/t/link-error-using-getvectorparameterbyname-in-c/287828>\
**Category:** Feedback & Requests\
**Tags:** linker-error, unreal-engine, compile-error, bug-report, question\
**Created:** [July 10, 2014, 10:33am UTC](https://forums.unrealengine.com/t/link-error-using-getvectorparameterbyname-in-c/287828 "2014-07-10T10:33:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2db7ca80](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2db7ca80](https://forums.unrealengine.com/u/anonymous_user_2db7ca80)\
**Post date:** [July 10, 2014, 10:33am UTC](https://forums.unrealengine.com/t/link-error-using-getvectorparameterbyname-in-c/287828/1 "2014-07-10T10:33:08Z")

</div>

The following line of code is generating a link error:

```
const FCollectionVectorParameter* BoatPosParam = BoatPositionCollection->GetVectorParameterByName(TEXT("BoatBos"));

```

Link error:

```
error LNK2019: unresolved external symbol "public: struct FCollectionVectorParameter const * __cdecl UMaterialParameterCollection::GetVectorParameterByName(class FName)const 

```

Seems odd, I can see the implementation in ParameterCollection.cpp, why can’t the compiler find it?

**Update:** I see this was in fact the wrong method to call, instead I need to get the instance. This also causes a link error

Code:

```
UMaterialParameterCollectionInstance* ParameterInstance = GetWorld()->GetParameterCollectionInstance(BoatPositionCollection);
FLinearColor BoatPosOut;
bool Result = ParameterInstance->GetVectorParameterValue(TEXT("BoatPos"), BoatPosOut);

```

Link error:

```
error LNK2019: unresolved external symbol "public: bool __cdecl UMaterialParameterCollectionInstance::GetVectorParameterValue(class FName,struct FLinearColor &)const

```

---

<div class="post-metadata">

**Author:** ![XYZWNMM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XYZWNMM](https://forums.unrealengine.com/u/XYZWNMM)\
**Post date:** [January 28, 2024, 10:38am UTC](https://forums.unrealengine.com/t/link-error-using-getvectorparameterbyname-in-c/287828/2 "2024-01-28T10:38:51Z")

</div>

GetVectorParameterByName() is not exported for dll. ( not attached ENGINE\_API)
