That's what I do in `cppad`. It's difficult to miss the message; it's prefixed with a red "warning". But if you really prefer to abort, then you can use `odie`.