EDN Admin
Well-known member
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-spacere 1<span class="x_Apple-tab-span" style="white-spacere
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-spacere
<span class="x_Apple-tab-span" style="white-spacere
<span class="x_Apple-tab-span" style="white-spacere I<span style="white-spacere 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-spacere do I need to add a library to my project or create some reference? If so how do I do that?
<span style="white-spacere
<span style="white-spacere Thanks,<br/>
View the full article
When I build my app I get the following error:
Error<span class="x_Apple-tab-span" style="white-spacere 1<span class="x_Apple-tab-span" style="white-spacere
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-spacere
<span class="x_Apple-tab-span" style="white-spacere
<span class="x_Apple-tab-span" style="white-spacere I<span style="white-spacere 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-spacere do I need to add a library to my project or create some reference? If so how do I do that?
<span style="white-spacere
<span style="white-spacere Thanks,<br/>
View the full article