c++ - XWindow + OpenGL, cant compile files -


i want compile opengl + xwindow c++ program, getting errors:

g++: fatal error: no input files compliation terminated. ./source/linux_opengl.c: line 10: //: catalogue ...typedef: command not found ...bool command not found ...xsetwindowattributes command not found ...syntax error near '}'. 

and on...

this compile script:

$(g++ -wall -pedantic -ansi) ./source/linux_opengl.cpp ./source/render.cpp -o linux_opengl -lx11 -lgl -lglu -lxxf86vm 

how can compile program?

well i'd start not doing this: $(g++ -wall -pedantic -ansi)

this telling shell:

"interpret output of g++ -wall -pedantic -ansi script , execute it".

this not want.

use just

g++ -wall -pedantic -ansi ./source/linux_opengl.cpp ./source/render.cpp -o linux_opengl -lx11 -lgl -lglu -lxxf86vm 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -