You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terminate called after throwing an instance of 'NotSupportedException'
what(): attempted to call unknown function -- either an unsupported stdlib function or missing definition
The problem is that #include <stdlib.h> is missing and calls to free are wrapped in ConstExpr due to unknown prototype, e.g.:
Well, as you noted, free is neither defined nor declared in the snippet... Although C allows using an implicit prototype, it is highly discouraged :) But yes, should be fixed so that it is detected as direct function call, not indirect (which happens now and later results in the described error which -- witch luck -- provides a reasonable error message).
Running angie on this code:
Results in
The problem is that
#include <stdlib.h>
is missing and calls tofree
are wrapped in ConstExpr due to unknown prototype, e.g.:Adding
#include<stdlib.h>
fixes the problem:The text was updated successfully, but these errors were encountered: