Copy link to clipboard
Copied
Hey guys,
I'm having trouble linking a third part dll file in visual studio 2013.
I'm using a third part library called "tinyXml2" to parse xml file in my plugin. Here's my folder structure"Adobe After Effects CS6 Win SDK\Examples\AEGP\ServerRender\Win\tinyXml",
my project file is in the "Win" folder.
In my "tinyXml" folder I have 3 files "tinyxml2.dll", "tinyxml2.h" and "tinyxml2.lib".
I use "#pragma comment(lib,"tinyXml\tinyxml2.lib")" to link the lib file
but it doesn't work, I still get "error LNK2019" and "error LNK2001" errors says the compiler can't find the methods I'm using.
I have set the "Project Properties --> C/C++ --> Code Generation-->Runtime Library" to "/MT" too
Do you ever running into such problem before? Please help me !!!
Never mind, newbie mistake. If I want to link a dll to my project, I need to make sure that my dll and lib file are compiled with the same settings as my plugin. Current my plugin is compiled in debug mode targeting x64, so I need to make sure my dll and lib are compiled with such settings too!
Copy link to clipboard
Copied
Never mind, newbie mistake. If I want to link a dll to my project, I need to make sure that my dll and lib file are compiled with the same settings as my plugin. Current my plugin is compiled in debug mode targeting x64, so I need to make sure my dll and lib are compiled with such settings too!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more