user2136963
user2136963

Reputation: 2606

How to install openCV 2.4.9 for Visual C++ 2008 x86? (Unresolved external symbol)

When I try to compile this code

// Project0.cpp : main project file.

#include "stdafx.h"

using namespace System;
#include <opencv2/core/core.hpp>

int main(array<System::String ^> ^args)
{
    return 0;
}

I get 38 errors and 4 warnings

I've specified all 3 folders with include files path: enter image description here

And lib files directory: enter image description here

As well as debug .lib files: enter image description here

The selected platform is Win32 and*.lib's are x86, so I think the problem differs from this, where x64 ones were used.

I can create a platform for solution and call it "x64", but cannot switch my project to it:

enter image description here

Upvotes: 2

Views: 830

Answers (1)

user2136963
user2136963

Reputation: 2606

As berak said, it's easier to get a Visual C++ 2010. To use opencv 2.4.9 with MVC++ 2008 one should recompile the library from sources

Upvotes: 2

Related Questions