I compiled all the static libs just fine so now I don't have to use .DLLs. However, when I attempt to compile a simple program I get multiple external errors. The code for this is:
Code: Select all
#include "stdafx.h"
#include <Magick++.h>
#include <iostream>
using namespace Magick;
using namespace std;
int main(int argc, char* argv[])
{
//Initializations...
Image image;
return 0;
}
and the compiler errors I get are:
Code: Select all
1>Compiling...
1>IMTEST.cpp
1>Linking...
1>IMTEST.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Magick::Image::~Image(void)" (__imp_??1Image@Magick@@UAE@XZ)
1>IMTEST.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Magick::Image::Image(void)" (__imp_??0Image@Magick@@QAE@XZ)
1>C:\Practice\IMTEST\Debug\IMTEST.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Practice\IMTEST\IMTEST\Debug\BuildLog.htm"
1>IMTEST - 3 error(s), 0 warning(s)
Can anyone shed some light on this rather troublesome situation?
Thank you for your time