Sunday 15 March 2015

c++ - Undefined reference to symbol 'glFrontFace' -



c++ - Undefined reference to symbol 'glFrontFace' -

i have spent day trying resolve issue , looking bit of help.

my global linker settings: -lgl -lglu -lpthread -lxrandr -lxxf86vm -lxi -lxinerama -lx11 -l/usr/lib/libglfw.sso

i have 2 projects, 1 library used other.

when compile project a, compiles library without issue. when compile project b, while linking library created project a, error in title.

the compiler command is(called project b)(libengine.a result of project a): g++ -l/usr/lib -o bin/debug/game obj/debug/main.o obj/debug/src/myscene.o -lgl -lglu -lpthread -lxrandr -lxxf86vm -lxi -lxinerama -lx11 ../engine/bin/debug/libengine.a /usr/lib/libglfw.so

any help appreciated.

is libgl.so file or link nowadays in /usr/lib? if yes. check pressence/architecture of (lib) file pointed link. hope solve issue.

c++ opengl-3

No comments:

Post a Comment