Build log:
-------------- Clean: Debug in Knight's Tour (compiler: GNU GCC Compiler)---------------
Cleaned "Knight's Tour - Debug"
-------------- Build: Debug in Knight's Tour (compiler: GNU GCC Compiler)---------------
mingw32-gcc.exe -Wall -std=c99 -g -std=c99 -I"..\..\CSFML 2.5\include" -I"..\..\CSFML 2.5\include" -c "F:\C\Knight's Tour\knight.c" -o obj\Debug\knight.o
mingw32-gcc.exe -Wall -std=c99 -g -std=c99 -I"..\..\CSFML 2.5\include" -I"..\..\CSFML 2.5\include" -c "F:\C\Knight's Tour\MAIN.C" -o obj\Debug\MAIN.o
mingw32-g++.exe -L"..\..\CSFML 2.5\lib" -L"..\..\CSFML 2.5\lib" -o "bin\Debug\Knight's Tour.exe" obj\Debug\knight.o obj\Debug\MAIN.o -lcsfml-graphics -lcsfml-audio -lcsfml-window -lcsfml-system -lcsfml-graphics -lcsfml-audio -lcsfml-window -lcsfml-system -mwindows
cc1plus.exe: warning: command line option '-std=c99' is valid for C/ObjC but not for C++
cc1plus.exe: warning: command line option '-std=c99' is valid for C/ObjC but not for C++
F:\C\Knight's Tour\knight.c: In function 'Knight_Main':
F:\C\Knight's Tour\knight.c:283:20: warning: passing argument 1 of 'show_board' from incompatible pointer type [-Wincompatible-pointer-types]
show_board(t->board, t->SIZE); ///Pokazanie rozwiazania, jezli istnieje
^
F:\C\Knight's Tour\knight.c:58:13: note: expected 'const int **' but argument is of type 'int **'
static bool show_board(const int ** Board, const int Size)
^
In file included from F:/CSFML 2.5/include/SFML/Window/Window.h:32:0,
from F:/CSFML 2.5/include/SFML/Window/Context.h:33,
from F:/CSFML 2.5/include/SFML/Window.h:34,
from F:/CSFML 2.5/include/SFML/Graphics.h:32,
from F:\C\Knight's Tour\MAIN.C:2:
F:/CSFML 2.5/include/SFML/Window/Event.h:132:3: warning: '._20' is deprecated [-Wdeprecated-declarations]
} sfMouseWheelEvent;
^
F:/CSFML 2.5/include/SFML/Window/Event.h:127:1: note: declared here
{
^
F:\C\Knight's Tour\MAIN.C: In function 'int main()':
F:\C\Knight's Tour\MAIN.C:69:53: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
sfRenderWindow * window = sfRenderWindow_create({SPRITE_RES * SIZE,
^
F:\C\Knight's Tour\MAIN.C:79:29: error: cannot convert 'tile (*)[8]' to 'tile**' for argument '2' to 'void create_tiles(int, tile**)'
create_tiles(SIZE, tiles);
^
F:\C\Knight's Tour\MAIN.C:80:40: error: cannot convert 'tile (*)[8]' to 'tile**' for argument '2' to 'void set_tiles(int, tile**, sfTexture*)'
set_tiles(SIZE, tiles, tile_texture);
^
F:\C\Knight's Tour\MAIN.C:92:39: error: cannot convert 'tile (*)[8]' to 'tile**' for argument '3' to 'void draw_tiles(sfRenderWindow*, int, tile**)'
draw_tiles(window, SIZE, tiles);
^
F:\C\Knight's Tour\MAIN.C:98:30: error: cannot convert 'tile (*)[8]' to 'tile**' for argument '2' to 'void destroy_tiles(int, tile**)'
destroy_tiles(SIZE, tiles);
^
Process terminated with status 1 (0 minute(s), 0 second(s))
Process terminated with status 0 (0 minute(s), 0 second(s))
4 error(s), 5 warning(s) (0 minute(s), 0 second(s))
Thanks for answer, and hope I provided the corect log.
F:\C\Knight's Tour\MAIN.C
The uppercase C means C++ to some compilers.
Tim S.