blitsort icon indicating copy to clipboard operation
blitsort copied to clipboard

Problems when building blitsort

Open cristiansgc opened this issue 3 years ago • 3 comments

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.

cristiansgc avatar Jan 03 '22 08:01 cristiansgc

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.

scandum avatar Jan 03 '22 12:01 scandum

I'm using SEGGER embedded studio, which I think that uses gcc (not sure).

Here I send some of the errors found.

Captura

I included the headers above in this

cristiansgc avatar Jan 03 '22 15:01 cristiansgc

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.

scandum avatar Jan 03 '22 18:01 scandum