Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Having trouble linking dll file

Participant ,
Jul 25, 2014 Jul 25, 2014

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 !!!

TOPICS
SDK
786
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Jul 25, 2014 Jul 25, 2014

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!

Translate
Participant ,
Jul 25, 2014 Jul 25, 2014
LATEST

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines