Error LNK2019 unresolved external symbols

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I am just working on my second ever C++ console app. I have looked at similar questions of people having the same problem but I still dont get it.
When I build my app I get the following error:

Error<span class="x_Apple-tab-span" style="white-space:pre 1<span class="x_Apple-tab-span" style="white-space:pre
error LNK2019: unresolved external symbol _D2D1CreateFactory@16 referenced in function "long __cdecl D2D1CreateFactory(enum D2D1_FACTORY_TYPE,struct _GUID const &,void * *)" (?D2D1CreateFactory@@YAJW4D2D1_FACTORY_TYPE@@ABU_GUID@@PAPAX@Z)<span class="x_Apple-tab-span" style="white-space:pre

<span class="x_Apple-tab-span" style="white-space:pre
<span class="x_Apple-tab-span" style="white-space:pre I<span style="white-space:pre have included the following header files
<pre class="prettyprint #include "stdafx.h"
#include "wincodec.h"
#include "d2d1.h"
#include "d2d1helper.h"
#include "d2dbasetypes.h"
#include "d2dbasetypes.h"
#include "d2d1_1.h"
[/code]
<br/>
<span style="white-space:pre do I need to add a library to my project or create some reference? If so how do I do that?
<span style="white-space:pre
<span style="white-space:pre Thanks,<br/>



View the full article
 
Back
Top