Closed MalcolmSlaney closed 11 months ago
sprintf is a dangerous function, but it is not deprecated as the message suggests. Its usage here is ok, as the buffer tmp is large enough to hold the result in all cases.
You are getting this error because you are using newer MacOS header files than we did in the previous release. In these, sprintf is erroneously (but understandably) marked deprecated.
We will most likely fix this for the next release.
As a workaround in the meantime, after you receive this error, open the generated file config.mk
in a text editor and remove all occurrences of -Werror
. Then retry executing make
.
When I compile a fresh copy of openMHA on my Mac running Sonoma (MacOSX 14.1.2) I get the following error message. Is this a known problem and has anybody updated the source to remove sprintf?
I cloned from GitHub and then simply typed the command 'make'.
Thanks.
-- Malcolm