PRB: "Not an Object File" Occurs When Running a Program

ID: Q149069

2.60 UNIX

 kbprb

The information in this article applies to:

SYMPTOMS

When attempting to run a program with the DO command, the following error message occurs:

   <filename> is not an object file.

CAUSE

This error occurs when both of the following conditions exist:

RESOLUTION

Specify the extension of the program in the DO command.

STATUS

This behavior is by design.

MORE INFORMATION

In FoxPro for UNIX, the order of execution for programs is different from the way it is in FoxPro for MS-DOS, FoxPro for Windows, or FoxPro for Macintosh.

The order of execution for programs in FoxPro for UNIX is as follows:

   EXE
   APP
   no extension
   FXP
   PRG

Steps to Reproduce Behavior

1. Create a program called Test.prg with the following code:

    WAIT WINDOW "I'm in Test.prg"

2. Create a file called Test (with no extension) with the following lines:

   Hello
   This is just a text file

3. Type the following command in the Command window:

   DO Test

   Note that the error described in the "Symptoms" section occurs.

4. Type the following command in the Command window:

   DO Test.prg

   Note that the Wait Window appears.

Additional reference words: 2.60 FoxUnix KBCategory: kbprb KBSubcategory: FxprgGeneral
Keywords          : kberrmsg FxprgGeneral 
Version           : 2.60
Platform          : UNIX

Last Reviewed: May 22, 1998