mergesord did not define yet
aqnaruto opened this issue · 2 comments
in c version
I met the same problem. The cmake process went well, but when I tried "make" command, it gave the following error:
cady@cady-Surface-Book-2:~/Desktop/flow_solver-master/flow_solver/build$ make
Scanning dependencies of target flow_solver
[ 50%] Building C object CMakeFiles/flow_solver.dir/flow_solver.c.o
/home/cady/Desktop/flow_solver-master/flow_solver/flow_solver.c: In function ‘game_order_colors’:
/home/cady/Desktop/flow_solver-master/flow_solver/flow_solver.c:1300:5: warning: implicit declaration of function ‘mergesort’ [-Wimplicit-function-declaration]
mergesort(cf, info->num_colors, sizeof(color_features_t),
^
/home/cady/Desktop/flow_solver-master/flow_solver/flow_solver.c: In function ‘game_find_forced’:
/home/cady/Desktop/flow_solver-master/flow_solver/flow_solver.c:1726:11: warning: variable ‘free_dir’ set but not used [-Wunused-but-set-variable]
int free_dir = -1;
^
[100%] Linking C executable flow_solver
CMakeFiles/flow_solver.dir/flow_solver.c.o: In function game_order_colors': /home/cady/Desktop/flow_solver-master/flow_solver/flow_solver.c:1300: undefined reference to
mergesort'
CMakeFiles/flow_solver.dir/flow_solver.c.o: In function game_search': /home/cady/Desktop/flow_solver-master/flow_solver/flow_solver.c:2372: undefined reference to
floor'
collect2: error: ld returned 1 exit status
CMakeFiles/flow_solver.dir/build.make:94: recipe for target 'flow_solver' failed
make[2]: *** [flow_solver] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/flow_solver.dir/all' failed
make[1]: *** [CMakeFiles/flow_solver.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
I got the same thing. Patch attached.
patch-qsort.txt