How do I set up code::blocks to recognize/fix "cannot find -lbgi" ?
Can someone direct me to the necessary information to be able to set up code::block to be able to use graphics.h ?
-------------- Build: Debug in test-header (compiler: GNU GCC Compiler)---------------
x86_64-w64-mingw32-g++.exe -Wall -fexceptions -g -c C:\Code-jk\test-header\main.cpp -o obj\Debug\main.o
C:\Code-jk\test-header\main.cpp: In function 'int main()':
C:\Code-jk\test-header\main.cpp:19:44: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
initgraph(&gdriver,&gmode,"c:\\tc\\bgi");
^
C:\Code-jk\test-header\main.cpp:18:34: warning: unused variable 'errorcode' [-Wunused-variable]
int gdriver = DETECT, gmode, errorcode;
^
x86_64-w64-mingw32-g++.exe -o bin\Debug\test-header.exe obj\Debug\main.o -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32 -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32 ..\..\header-BS\libbgi.a C:\header-BS\libbgi.a
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lbgi
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 2 warning(s) (0 minute(s), 0 second(s))