Witam
Chciałem zacząć kodzić w SDL+OpenGL, uczę się z tutoriala na NeHe, ale już na samym początku mam problem.
Po próbie kompilacji kodu ze strony kompilator zwraca błędy.
Kod - http://nehe.gamedev.net/data/lessons/linuxsdl/lesson02.tar.gz
A to błędy:
main.cpp error: ‘<anonymous>’ has incomplete type
main.cpp error: invalid use of ‘GLvoid’
main.cpp error: ‘<anonymous>’ has incomplete type
main.cpp error: invalid use of ‘GLvoid’
main.cpp: In function ‘int main(int, char**)’:
main.cpp error: too few arguments to function ‘int initGL(<type error="error">)’
main.cpp error: at this point in file
main.cpp error: too few arguments to function ‘int drawGLScene(<type error="error">)’
Czyli ogólnie kompilatorowi przeszkadza GLvoid, co z tym fantem zrobić? ;)