BC.EXE Will Not Compile Files Named USER.* (40547)



The information in this article applies to:

  • Microsoft Visual Basic for MS-DOS
  • Microsoft QuickBASIC 4.0
  • Microsoft QuickBASIC 4.0b
  • Microsoft QuickBASIC 4.5
  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0

This article was previously published under Q40547

SUMMARY

The Basic compiler (BC.EXE) will not compile any source file with a name of USER.* (e.g. USER.BAS, USER.TXT, etc.). Instead, it will take input from the console and report any errors on each line as they are entered. BC.EXE will create an object file only if a name other than USER.OBJ is specified.

The filename USER is a special filename reserved for compiling files that are entered directly from the console instead of from a file. Thus, if you have a file that is named USER.BAS, BC.EXE will not compile it.

To work around this limitation, rename your Basic file to something other than USER.BAS.

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:KB40547