c - gcc cannot find -lglfw3 && i was unable to add the path -


i running centos 6.4, have installed glfw 3.0.4 software package cfd l-b visualisation. that's not issue, issue following instructions test of glfw installed properly, ran issues.

i began

g++ -c main.cpp 

which has outputted main.o file, , went onto run of advice of thread :

g++ main.o  -o main.exec  `pkg-config --libs glfw3` -lgl -lglu -lglfw3 -lx11 -lxxf86vm -lxrandr -lpthread -lxi -ldld 

which has given me error code:

package glfw3 not found in pkg-config search path. perhaps should add directory containing `glfw3.pc' pkg_config_path environment variable no package 'glfw3' found /usr/bin/ld: cannot find -lglfw3 collect2: ld returned 1 exit status 

have tried adding -l or -b path of glfw3.pc , no use,

can please advise on how can work properly?


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -