I'm trying to compile a jni library for mac os x. My system is running Mountain Lion if that matters. I created a jni project in xcode and copied the source files into the project. It compiles well but had linking errors. Here is the error:
Undefined symbols for architecture x86_64:
  "_init_queue", referenced from:
      _floodfill in floodfill.o
  "_jumpPointSearch", referenced from:
      _Java_com_clashtune_pathfind_Pathfinder_jumpPointSearchNative in main.o
     (maybe you meant: _Java_com_clashtune_pathfind_Pathfinder_jumpPointSearchNative)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What did I do wrong? It's having four source files main.c, floodfill.c, jumppointsearch.c and queue.c. I don't understand what they do since I'm not a C programmer. I'm just compiling them for a friend on this forum.
EDIT:
This is the project property page 'Build Phases' for this project.

Thanks.
 
    