Problems when building blitsort
cristiansgc opened this issue · 3 comments
cristiansgc commented
Hello!
When building code I get lots of errors (1370 exactly). Most of them are "use of undeclared identifier" or "unknown type name". Any help here?.
Also, what is supposed I have to pass in the last parameter of blitsort func (type CMPFUNC*)?
Thanks in advance.
scandum commented
You're compiling with gcc? Having a few of the specific warnings would help. Might be you need some headers? Could try:
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Like with qsort (see man qsort) you need to provide a comparison function. bench.c has some examples.
cristiansgc commented
scandum commented
Odd, maybe check the 2 errors for bench.c. As far as I can tell it's not including blitsort.h for some reason.
I never used SEGGER so I can't really help you out much.