Re: Error matrix for EMC [message #11050 is a reply to message #11048] |
Mon, 04 October 2010 10:50 |
M.Babai
Messages: 46 Registered: January 2008 Location: Netherlands
|
continuous participant |
From: *KVI.nl
|
|
Hi Stefano,
Here I have the same problem.
The solution is adding #include <cstdlib> or #include <stdlib.h> to PndEmcErrorMatrix.h. Because we use C++, I would prefer the first one.
But the question remains if we need to use abort(). According to the documentation:
======================
Aborts the process with an abnormal program termination.
The function generates the SIGABRT signal, which by default causes the program to terminate returning an unsuccessful termination error code to the host environment.
The program is terminated without executing destructors for objects of automatic or static storage duration, and without calling any atexit function.
The function never returns to its caller.
======================
I have not looked into the source code yet, but in the most cases, it is not a good idea to use abort().
btw. should I add the lines to the headers and submit?
/M
[Updated on: Mon, 04 October 2010 11:04] Report message to a moderator
|
|
|