Friday, 23 March 2018

Unable to Compile openGL code in dev c++

Currently I am trying to compile code below which was a part of my academic activities



#include 
#include
int main()
{
glutCreateWindow("first graphics window");

}


but It is constantly showing these 3 errors:




"c:\program files
(x86)\dev-cpp\mingw64\x86_64-w64-mingw32\bin\ld.exe cannot find -lbgi"
"C:\Users\Tayyab\Documents\collect2.exe [Error] ld returned 1 exit
status"
"C:\Users\Tayyab\Documents\Makefile.win recipe for target '"glut' failed"





and I have no idea what is wronge in my code.
I watched a video tutorial to resolve above issue so I have inserted following files in "C:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\include\GL" directory:




freeglut.h



free_ext.h




freeglut_std.h



glut.h




and also




libfreeglut.a




libfreeglut_static.a




in "C:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib" directory



moreover I have also inserted




freeglut.dll





in "C:\Windows\System32" directory.



But there was no benefit of doing all these insertions.



Any help will be greatly appreciated. Thank You!

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...