scandum / blitsort

Blitsort is an in-place stable adaptive rotate mergesort / quicksort.
The Unlicense
702 stars 19 forks source link

Problems when building blitsort #3

Closed cristiansgc closed 1 year ago

cristiansgc commented 2 years ago

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 2 years ago

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 2 years ago

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

scandum commented 2 years ago

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.