I'm using visual studio 2010. And followed a simple opencv tutorial : Installing OpenCV 2.4.3 in Visual C++ 2010 Express
However when i hit F5 compile visual studio gives me an access denied message. LNK1104
- Restarting visual studio has no effect.
- Running as Admin has no effect.
- Completely restarted in a new project, same error.
- Non of my folders use spaces, so errors cant be related to that.
- I am below the max unc path length (old DOS bug)
- Windows security essentials (my antivirus), has this folder excluded.
- Strangly code syntax following openCV namespace etc is understood
- A compilation seams to be made, but cannt run
- Also run from a dos prompt in debug folder, same error access denied
- using taskmanager i see my exe loaded in memory, looking with sysinternals proces explorer; i see they are loaded by Devenv.exe (part of visual studio (same icon as vs2010). but well loaded but not working.
- When closing vs2010, and using procmon.exe (sysinternals), going to debug folder executing the little app i made. then cmdagent process gives one "create file" exception on the Q drive (a left over from office online). However my app isnt related to office at all, its just a small image shower, nothing reffers to that bogus Q drive ???
I somehow think the problems are related to VS2010 itself, but I have no clues of what is happening here, its one of my first c++ projects so i'm not sure where to look of what goes wrong, any help would be great.
*** update 20-3-2015 Problem whatever it is, is not related to openCV Even the most simple C++ code like below isnt working now, what can this be ?
#include <iostream>
using namespace std;
int main()
{
cout << "it never executes" << endl;
}
Whats wrong with my visual studio suddenly ???