Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Error "no FILE directive....." when compiling
Ref. No. QNX.000009482
Category(ies) Utilities
Issue We have written a program in C using Watcom 10.6 in QNX4 and are trying to compile it. We can not get it to compile.  The error that keeps coming up is:

no FILE directive.....

Our compile line is:

cc -L/usr/lib/mylib.lib -o test.c

What is wrong?
Solution That compile line has no source file.  The -o option tells the compiler that the filename after it is the output name.  So, for this example, there is no source file and nothing to compile.

This is covered in depth in the Watcom manuals, and also in the 'cc' use message.

See Also: Watcom Compiler & Tools manual