Magick++ for Visual Studio 2015 tutrial
Posted: 2016-09-30T09:42:54-07:00
Is there some tutorial or video on how to set up simple win32 console app with static libs ?
I've build Visual Magich config tool, then build MTD libs for x86 system.
I've create simple win 32 console app. Set proper path for "Additional Library Directories" and "Additional Include Directories"
Set all libs to Linker's "Additional Dependencies"
My code:
And I always have error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl Magick::InitializeMagick(char const *)" (__imp_?InitializeMagick@Magick@@YAXPBD@Z) referenced in function _main
What may be wrong here?
Please help.
I've build Visual Magich config tool, then build MTD libs for x86 system.
I've create simple win 32 console app. Set proper path for "Additional Library Directories" and "Additional Include Directories"
Set all libs to Linker's "Additional Dependencies"
My code:
Code: Select all
#include "stdafx.h"
#include "Magick++.h"
using namespace std;
using namespace Magick;
int main( int argc, char ** argv )
{
InitializeMagick( *argv );
system( "pause" );
return 0;
}
What may be wrong here?
Please help.