Thanks for the command-lines but still no luck.
localhost:src sriharshachilakapati$ gcc -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -O3 -Wall -c -fmessage-length=0 -o queue.o queue.c
localhost:src sriharshachilakapati$ gcc -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -O3 -Wall -c -fmessage-length=0 -o jumppointsearch.o jumppointsearch.c
localhost:src sriharshachilakapati$ gcc -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -O3 -Wall -c -fmessage-length=0 -o floodfill.o floodfill.c
localhost:src sriharshachilakapati$ gcc -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -O3 -Wall -c -fmessage-length=0 -o main.o main.c
localhost:src sriharshachilakapati$ gcc -D_JNI_IMPLEMENTATION_ -Wl -dynamiclib -o libpathfinder.dylib queue.o main.o jumppointsearch.o floodfill.o
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)
I’ve created a JNI Project in Xcode and copied these source files into it. Same errors there as well.
Can I ask a question on StackOverflow?