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

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


Solution 1:[1]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Brecht Sanders