Open bcriger opened 8 years ago
I also did this. I also can't find the 'load_json' method in polyestimate. How did you get around this error? I don't see this method in the cJSON folder.
This was a while back, but I'm pretty sure I ended up working from a much earlier commit in this repo, in which the library with the load_json method is still part of the codebase. Maybe the earlier release builds will work (see https://github.com/adamcw/autotune/releases/tag/v2.0.1), though I haven't tested.
I am having similar issues with the current build. When trying to compile I see errors about INT_MAX
and LONG_MAX
not being defined. When I add #include <limits.h>
to match.c
I get errors that load_json
is not declared in scope. I get this behavior both when I use Cygwin on Windows and try it out on a Linux machine. I will see if earlier versions work for me...
Yes, the newest releases do not compile. Go back to an earlier version to get working code.
I solved the 'load_json' issue in the polyestimate.c file as follows:
Then, it compiled and I am able to run the example given in the README.md file.
I solved the 'load_json' issue in the polyestimate.c file as follows:
- Comment in all these statements "json = load_json(in);"
- Replace them by "json = cJSON_Parse(fname);"
Then, it compiled and I am able to run the example given in the README.md file.
OMG it works!!thank you very much
Hello,
I'm getting an error when I try to compile. In
match.c
, the constantsINT_MAX
,UINT_MAX
andLONG_MAX
are used but not defined. I've noticed that if I add an#include <limits.h>
at the top, these errors vanish. Was this the right thing to do?Cheers,
Ben