compiling with g++

This is a discussion on compiling with g++ within the Linux Programming forums, part of the Platform Specific Boards category; my files in my compiling folder:
input.cpp contains the line #include "input.h"
input.h contains the line #include "input.cpp" and #input ...

No, quotes mean search local directory, and <> means search include paths, and possible local directory second.
Oh, believe me there's a lot of people who don't know what they're doing.
Do the source file contain templates?

I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.

No, quotes mean search local directory, and <> means search include paths, and possible local directory second.
Oh, believe me there's a lot of people who don't know what they're doing.
Do the source file contain templates?

no templates in input.h.
we have a class that reads .h5 files, its functions are input.h
input.cpp defines two const float arrays. these are parameters for image analysis functs

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
...

I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.