Keil Logo

GENERAL: ERROR ( TARGET HAS NO OBJECT MODULES )


Information in this article applies to:

  • C51 All Versions

QUESTION

I'm working on a simple project that has just one source file named TEST.c. When I try to build my Target, I receive the following error:

"Build Target 'Target1'
compiling TEST.c
Target has no object modules
Target not created"

What may be causing that error?

ANSWER

Go to Options for "Source Group 1 - Properties" and you will see that you have the Generate Assembler SRC file option checked and Assembly SRC file unchecked.

This causes that error.

The reasoning is: you are generating a .SRC file, the IDE is trying to create an .OBJ file, but you are not assembling it (the Assembly SRC file option is disabled). The IDE expects the output of the assembly process over the .SRC file, but you are not assembling it. That's why you are receiving this error message.

RESOLUTION

You may disable the Generate Assembler SRC file Option OR enable both Generate Assembler SRC file and Assembly SRC file options.

SEE ALSO

Last Reviewed: Monday, April 19, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.