fixed the dependency error by adding -I/../libdir but clearly there are other dependency issues:
Code:
# g++ input.cpp h5inspect.cpp -I/prog/igor/lib/hdf5-1.8.1/hdf5/include
input.h: In member function 'float dataset_buf::operator()(int, int, int) const':
input.h:73: error: 'assert' was not declared in this scope
input.h: In member function 'float& dataset_buf::operator()(int, int, int)':
input.h:77: error: 'assert' was not declared in this scope
input.h: At global scope:
input.h:97: error: expected ',' or '...' before '<' token
input.h:97: error: ISO C++ forbids declaration of 'valarray' with no type
input.h:107: error: ISO C++ forbids declaration of 'valarray' with no type
input.h:107: error: expected ';' before '<' token
input.h: In constructor 'quantizer::quantizer(int)':
input.h:97: error: class 'quantizer' does not have any field named 'v'
input.h:97: error: 'v' was not declared in this scope
input.h: In member function 'int quantizer::nq() const':
input.h:102: error: 'v' was not declared in this scope
input.h: In member function 'int quantizer::operator()(float) const':
input.h:116: error: 'v' was not declared in this scope
...