简体   繁体   中英

Visual Studio fatal error C1084: Cannot read include file: 'c:\program files (x86)\microsoft visual studio 10.0\vc\include\map': Permission denied

Having some problems with Visual C++ express 2010 and getting the same thing with Visual Studio 2010.

I get this error on compilation:

fatal error C1084: Cannot read include file: 'c:\\program files (x86)\\microsoft visual studio 10.0\\vc\\include\\map': Permission denied

What's odd is this was compiling yesterday, I closed it and went to bed, came back to it this morning and it doesn't compile. I haven't changed anything, what happened ?

Advice would be much appreciated.

EDIT:

It seems this problem only occurs when I include any openCV header file. It was all working before, why not now?

EDIT2:

the problem occurs on a hello world example if I #include map

EDIT3:

went into university and tried it, it works on these machines, seems the problem is specific to my PC. All I can think of is that the file got corrupted somehow.

I copied the "map" file from another machine into my c:\\program files (x86)\\microsoft visual studio 10.0\\vc\\include\\ and now it all works. It must have been corrupted somehow.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM