Home > Back-end >  Virtual Studio in the compile tip Error D8003: lack of the source file name
Virtual Studio in the compile tip Error D8003: lack of the source file name

Time:01-22

For help, compiled in Debug mode engineering of a certain CPP file prompt "Error D8003: lack of the source file name", as shown in the following:

But in Realse mode is normal,

What reason is this?

CodePudding user response:

Reconstruction of all?
Baidu search the corresponding error code,

CodePudding user response:

Reconstruction, the MSDN search content is:
"When it is compiled from the command line, do not specify a file name, if you want to correct this error, please add at least one file to the command,"

But I'm not a compile from the command line, and the Release mode is normal, doubt is a property set problem, but don't know what is, again,

CodePudding user response:

refer to the second floor x1165952707 response:
reconstruction, MSDN search content is:
"When it is compiled from the command line, do not specify a file name, if you want to correct this error, please add at least one file to the command,"

But I'm not a compile from the command line, and the Release mode is normal, doubt is a property set problem, but don't know what is, again,

In the explorer window, one at a time using the right mouse button point source files under each source file, compiled in the pop-up menu, see which source file error,

CodePudding user response:

reference zhao4zhong1 reply: 3/f
Quote: refer to the second floor x1165952707 response:

Reconstruction, the MSDN search content is:
"When it is compiled from the command line, do not specify a file name, if you want to correct this error, please add at least one file to the command,"

But I'm not a compile from the command line, and the Release mode is normal, doubt is a property set problem, but don't know what is, again,

In the explorer window, one at a time using the right mouse button point source files under each source file, compiled in the pop-up menu, see which source file error,



Know which file,

CodePudding user response:

Each CPP file begins with: # include "stdafx. H"

CodePudding user response:

Don't look at the error window, always is not complete,
To see the output window,

CodePudding user response:

If is to use VS, compare what is the difference between the Debug and Release of compiling parameters,,
I suspect the [C/C + +] - [normal] - [additional include directories] set contains path has a problem,,

If is use nmake command, check behind the cl commands include path - I $(INCDIR)

CodePudding user response:

The same problem, can you tell me the original poster is how to solve?
  • Related