File Name Extensions

Files specified on the command line are identified by contents and file extension, as in the CodeWarrior IDE.

The command-line version of the CodeWarrior C/C++ compiler accepts non-standard file extensions as source but also emits a warning. By default, the compiler assumes that a file with any extensions besides .c, .h, .pch is C++ source. The linker ignores all files that it can not identify as object code, libraries, or command files.

Linker command files must end in .cmd. They may be simply added to the link line, for example, for 56800:

mwld56800e file.o "MSL C 56800E.lib" "Runtime 56800E.Lib" linker.cmd

For more information on linker command files, refer to the Targeting manual for your platform.