when compiling silvercrock i get many errors. i was able to get rid of some by changing all of the gl3 include's to gl in the source files(it couldn't find gl3.h but finds gl.h(using nvidia binary driver)). now i get:
Code:
g++ -std=c++0x -O3 -L/usr/local/lib fish.cpp
g++ -std=c++0x -O3 -L/usr/local/lib framebuffer.cpp
g++ -std=c++0x -O3 -L/usr/local/lib level.cpp
framebuffer.cpp: In destructor ‘Framebuffer::~Framebuffer()’:
framebuffer.cpp:10: error: ‘glDeleteFramebuffers’ was not declared in this scope
framebuffer.cpp: In member function ‘void Framebuffer::init(int, int)’:
framebuffer.cpp:14: error: ‘glGenFramebuffers’ was not declared in this scope
framebuffer.cpp:17: error: ‘glBindFramebuffer’ was not declared in this scope
framebuffer.cpp:21: error: ‘nullptr’ was not declared in this scope
framebuffer.cpp:22: error: ‘glFramebufferTexture2D’ was not declared in this scope
framebuffer.cpp: In member function ‘void Framebuffer::bind() const’:
framebuffer.cpp:26: error: ‘glBindFramebuffer’ was not declared in this scope
framebuffer.cpp: In static member function ‘static void Framebuffer::bindDefault()’:
framebuffer.cpp:34: error: ‘glBindFramebuffer’ was not declared in this scope
make: *** [framebuffer.o] Error 1
make: *** Waiting for unfinished jobs....
fish.cpp: In member function ‘virtual void Perch::update(Fish*&, int, int)’:
fish.cpp:183: error: ‘nullptr’ was not declared in this scope
make: *** [fish.o] Error 1
level.cpp: In member function ‘unsigned int Level::dateInt(const std::string&)’:
level.cpp:20: error: ‘nullptr’ was not declared in this scope
level.cpp: In member function ‘void Level::step(int, int, const glm::core::type::mat4&, int)’:
level.cpp:78: error: ‘nullptr’ was not declared in this scope
level.cpp:151: error: expected primary-expression before ‘[’ token
level.cpp:151: error: expected primary-expression before ‘]’ token
level.cpp:151: error: expected primary-expression before ‘&’ token
level.cpp:151: error: ‘value’ was not declared in this scope
level.cpp:151: error: expected primary-expression before ‘const’
level.cpp:151: error: expected primary-expression before ‘const’
level.cpp:151: error: unable to deduce ‘const auto’ from ‘<expression error>’
level.cpp:151: error: expected ‘,’ or ‘;’ before ‘{’ token
level.cpp:68: warning: unused variable ‘seconds’
level.cpp:151: warning: unused variable ‘timelapse’
level.cpp:228: error: expected ‘}’ at end of input
make: *** [level.o] Error 1
Bookmarks