Page 1 of 1

qsort - Prototype Declaration

Posted: Wed Mar 15, 2006 2:27 am
by Silicone_Milk
Eh... well I decided that I'd rather compile the source code to Q3 with Dev-C++ rather than the .bat files that don't even work without some tweaking which come with the source.

I got quite a few errors at first because I included a file I wasnt supposed to and such and some variable was being redeclared so I fixed those.

Now there's one last error I don't quite understand:
In file bg_lib.c error - function qsort:
"argument 'a' doesn't match prototype"
"prototype declaration"

I'm not quite sure why it's giving me this error. Any help would be greatly appreciated!

Posted: Wed Mar 15, 2006 7:21 am
by torhu
You're not supposed to use bg_lib.c when compiling to object code. It contains replacements for standard C functions, like qsort. Just exclude it from compiliation.

Posted: Wed Mar 15, 2006 2:33 pm
by Silicone_Milk
heh sorry for not updating. I eventually figured that out and removed it. Then was flooded with a crapload of errors that I ended up going "screw it" and made the batch files work =P