This is a discussion on compiling with g++ within the Linux Programming forums, part of the Platform Specific Boards category; Originally Posted by CornedBee What compiler did your coworker use? It may well be that <cassert> was indirectly included for ...
adding #include <cassert> to input.h still gives me assert errors
Code: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 input.h: In member function 'void dataset_loader::derive_radon_blob_summary(const std::string&)': input.h:299: error: 'assert' was not declared in this scope input.h: At global scope: input.h:519: error: expected ',' or '...' before '<' token input.h:519: error: ISO C++ forbids declaration of 'valarray' with no type input.h:545: error: ISO C++ forbids declaration of 'valarray' with no type ...
Last edited by elninio; 06-30-2008 at 03:12 PM.
Can you post the context code, i.e. line 73 and some around it?
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
>sorry to have wasted your time. i assumed the code i received was functional. it wasn't. lol... a dangerous assumption to make!