qsort - Prototype Declaration

Locked
Silicone_Milk
Posts: 2237
Joined: Sat Mar 12, 2005 10:49 pm

qsort - Prototype Declaration

Post 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!
torhu
Posts: 76
Joined: Thu Jun 16, 2005 7:57 pm

Post 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.
[url=http://www.smokin-guns.org]Smokin' Guns[/url]
[url=https://sites.google.com/site/monsterbrowser//]Monster Browser[/url]
Silicone_Milk
Posts: 2237
Joined: Sat Mar 12, 2005 10:49 pm

Post 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
Locked