Home > Software engineering >  CMD appear unable to open a file: XXX. Obj how to deal with
CMD appear unable to open a file: XXX. Obj how to deal with

Time:09-28

Microsoft Windows version 6.3.9600 []
(c) 2013 Microsoft Corporation, all rights reserved.

C: \ Users \ zgh> CD \

C: \ & gt; C
cl. Exe aa.Microsoft (R) C/C + + for x86 optimizing compiler 18.00.21005.1 version copyright (C) Microsoft
Corporation, all rights reserved,

Aa. C
C: \ aa. C: fatal error C1083: cannot open file: the compiler to generate "aa. Obj" : Permission DE
Nied

C: \ & gt;

CodePudding user response:

Programmer is one of the common sense: don't put program source code, or projects or exe desktop this complex (mostly with Spaces and the characters and the firewall or antivirus software tight control on disk C) of the directory,

CodePudding user response:

Aa. C file is in c pan-gen directory?

CodePudding user response:

I am a novice, try the following operation, I help you search
Will delete all of files, the Debug file to compile
Permission problems
Menu - projects - property - configuration properties - c/c + + - - - - assembler output file output: no list

CodePudding user response:

refer to the second floor fight_in_dl response:
aa. The is c file in c pan-gen directory?

Yes, only disk c

CodePudding user response:

reference 1st floor zhao4zhong1 response:
programmer is one of the common sense: don't put program source code, or projects or exe desktop this complex (mostly with Spaces and the characters and the firewall or antivirus software tight control on disk C) of the directory,
this laptop only disk C...

CodePudding user response:

The
reference 3 floor From_TaiWan response:
I am a novice, try the following operation, I help you search
Will delete all of files, the Debug file to compile
Permission problems
Menu - projects - property - configuration properties - c/c + + - - - - assembler output file output: no list

Baidu a lot, or not done, do not intend to continue on this issue, thank you

CodePudding user response:

reference
yes, only disk c



Make sure you are running cl. Exe command have write permissions of the current directory
Search. Obj is indeed live, in what directory, if the directory has write permissions on
In addition if the file is used in the c + + header file, need to add/EHsc,

CodePudding user response:

The new folder c: \ mydir
  • Related