Undeclared ‘Exit’ Error while Building Environment

Issue:
By default, the VectorCAST test harness #defines exit to VCAST_exit. If your source code #includes the C standard library, which #undefines exit, you may see a compile or link error while building the environment such as undefined symbol VCAST_exit or undeclared ‘exit'.
Solution:

Add the defined variable VCAST_DONT_RENAME_EXIT to the list of defined variables, and then either recompile or relink the test harness (Environment | Recompile | Automatic or Environment | Relink).




Article ID: 1512
Last updated: 2019-11-13
Revision: 5
VectorCAST -> Troubleshooting -> Undeclared ‘Exit’ Error while Building Environment
https://kb.vector.com/entry/1512/