IBM Support

Make returns an "Exit Code 0x01" error

Question & Answer


Question

How can I correct the Make error "Exit Code 0x01"?

Cause

The command for Make is too long

Answer

If you have too many objects being sent to the linker, make may fail to execute properly. There are two remedies for this scenario:

  • You can separate your model into multiple sub projects, compile them as libraries and then include them into a master project. You can find more information about creating libraries in the help documentation (see section about component based development). This is the recommended solution.
  • You can reconfigure the makefile so that it builds is performed hierarchically. for example, each package has its own makefile containing only a handful of files, each of which are then called by a master makefile. In order to access the list of objects (generated by $OMContextMacros). The only way to do this at present is to modify the CPP_CG::<Environment>::CPPCompileCommand property to write each separate object filename to a text file.
    This is definitely the more invasive of the two options and is only recommended as a last resort.



[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Documentation","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21398449