I am trying just a basic program with OpenCV with the following code:
#include \"cv.h\"
#include \"highgui.h\"
int main()
{
IplImage* newImg;
newImg
No need to do any of that. It is a visual studio error.
just go here: http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=31354
and download the appropriate fix for your computer's OS
close visual studio, run the fix and then restart VS
The code should run without any error.