i am trying to compile example program “simplest”. I am using mac os X 10.2.4 with gcc 3.1. I changed the gcc to g++ in the make file and ran make.

In file included from main.c:13:
../../api/inc/wincompat.h: In function int kbhit()':
bzero’ undeclared (first use this function)
../../api/inc/wincompat.h:52: (Each undeclared identifier is reported only once
for each function it appears in.)
make: *** [all] Error 1


I tracked down the problem. It is fixed by includeing strings.h where the bzero function is. Now I get a new error:

g++ -g -O3 -o simplest main.c ../../api/lib/libfmod.a -framework Carbon
ld: table of contents for archive: ../../api/lib/libfmod.a is out of date; rerun ranlib(1) (can’t load from it)
make: *** [all] Error 1

final edit:

I figured out what ranlib is, ran ranlib -a libfmod.a and it worked like magic. Why did I need to do this? Maybe a libmod.a with updated table of contents should be included in the download 😀

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.