We help IT Professionals succeed at work.

import causing compiler error

pentomino
pentomino asked
on
When I choose "Build All" on a large Visual C++ project I get compiler error
c:\dev111\main\\stdafx.h(25) : fatal error C1083: Cannot open compiler generated file: 'c:\dev111\main\debug\msado15.tlh': Permission denied

Line 25 if the stdafx.h file is:
#import "C:\Program Files\Common Files\System\ADO\msado15.dll"   - rename_namespace("AdoNS") rename("EOF", "EndOfFile")


If I then just choose to build the exe, all goes well.  Can anyone tell me what is going on?


Thanks
Comment
Watch Question

I got the same error a few days ago.  I deleted the msado15.tli and msado15.tlh files, rebuilt all, and it worked.

   Glenn

Commented:
Because the *.tlh or *.tli is read-only, Maybe you get it from sourcesafe or other reason cause it read-only.
So you can delete all the *.tlh and *.tli file then rebuild.

Author

Commented:
Thanks Glenn