About graphics.h, winbgim.h and libbgi.a libraries in codeblock

1k views Asked by At

I added the full library graphic.h, winbgim.h, libbgi.a and its path in linker setting and other linker but it didn't work and it showed an error:

ld.exe cannot find -lbgi
1

There are 1 answers

3
Brecht Sanders On

ld will give you that error if it can't find libbgi.a for static builds or libbgi.dll.a shared builds.

Make sure the path containing libbgi.a is set it the linker paths as in this screenshot: enter image description here

Another thing you could try is to build a static version of your project in order to avoid using a missing shared library.