Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: makefile problem

  1. #1
    Newbie Newbie
    Join Date
    Sep 2017
    Posts
    1

    makefile problem

    Hi,
    Im trying to make some simple graphics in Devc++ and when I compile and run my program this error appears

    C:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -lbgi
    C:\Users\Roula\Desktop\grafika\collect2.exe [Error] ld returned 1 exit status
    25 C:\Users\Roula\Desktop\grafika\Makefile.win recipe for target 'example1.exe' failed

    any help?
    thank you
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	screen-13.21.02[15.09.2017].png 
Views:	13 
Size:	5.9 KB 
ID:	2481  

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    4,124
    Quote Originally Posted by Rou_Prog94 View Post
    Im trying to make some simple graphics in Devc++ ...
    when I compile and run my program this error appears

    ...\x86_64-w64-mingw32\bin\ld.exe cannot find -lbgi
    While graphics, this doesn't really have anything to do with OpenGL.

    Your error suggests that your linker (ld.exe) cannot locate a library named "libbgi.a" or "libbgi.so" anywhere in your link library search path. You can probably fix this problem by either: 1) telling the linker to look in the directory containing the library by adding a "-L" option (e.g. "-L/some/path -lbgi"), OR instead providing a full path to the library instead of "-lbgi" on the linker line (e.g. "/some/path/libbgi.a").

    So, find libbgi.a or libbgi.so on your system, and then give that path to the linker so it can use it to find that library.

    Related:


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •