I'm trying to compile a demo project, what is using OpenGL
.
I'm getting this error message:
But I have everything:
What is happening?
If I have all of the dependencies, why does it not compile?
I use Solus 3.
The meaning of -lglut32
(as an example) is, load the library glut32
.
The result of the ls
you execute showed that you have the header file for glut32
In order to solve the problem of cannot find -l-library-name
You need:
Help gcc/the linker to find the library by providing the path to the library
-Ldir-name
to the gcc
commandLD_LIBRARY_PATH
environment variableUpdate the "Dynamic Linker":
sudo ldconfig
-llibrary -l library Search the library named library when linking. -Ldir Add directory dir to the list of directories to be searched for -l.