[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Avoiding Link Errors

The CodeWarrior linker treats the Perl script as a prefix file. Therefore, the linker expects to apply that prefix file to some source code in your project. If your project does not contain source code, the linker displays the following error message when you compile the project:


  Link Error: 'main' is undefined.

Compiling the project successfully runs the script but also produces the linker error. To avoid this error message, either ensure that your project contains some source code or set the Linker option to None in the Target Settings preference panel. For more information, see the discussion about Target Settings in the IDE User Guide.

The Link Order View of the Project window determines when the Perl script runs. In order for your Perl script to run as intended, make sure you properly position it within this view. See the discussion about the Link Order View in the IDE User Guide for more information.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 02, 2000