bart@localhost ~/milter-dnsbl $ g++ -o main.o -c trap.cpp
trap.cpp: In function 'trap trap(std::string)':
trap.cpp:11: error: return type 'struct trap' is incomplete
trap.cpp:11: error: only constructors take base initializers
trap.cpp: At global scope:
trap.cpp:13: error: invalid use of undefined type 'struct trap'
trap.cpp:8: error: forward declaration of 'struct trap'
trap.cpp: In member function 'void trap::load()':
trap.cpp:15: error: 'ifstream' was not declared in this scope
trap.cpp:15: error: expected `;' before 'ifile'
trap.cpp:16: error: 'ifile' was not declared in this scope
trap.cpp:18: error: 'string' was not declared in this scope
trap.cpp:18: error: expected `;' before 'line'
trap.cpp:19: error: 'ifile' was not declared in this scope
trap.cpp:19: error: 'line' was not declared in this scope
trap.cpp:20: error: 'trap_list' was not declared in this scope
trap.cpp:21: error: 'trap_list' was not declared in this scope
trap.cpp: At global scope:
trap.cpp:25: error: invalid use of undefined type 'struct trap'
trap.cpp:8: error: forward declaration of 'struct trap'
trap.cpp: In member function 'void trap::print()':
trap.cpp:27: error: 'cout' was not declared in this scope
trap.cpp:27: error: 'trap_list' was not declared in this scope
trap.cpp:27: error: 'endl' was not declared in this scope
trap.cpp:28: error: 'list' was not declared in this scope
trap.cpp:28: error: 'string' was not declared in this scope
trap.cpp:28: error: '::iterator' has not been declared
trap.cpp:28: error: expected `;' before 'iter'
trap.cpp:28: error: 'iter' was not declared in this scope
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
bart@localhost ~/milter-dnsbl $ g++ -o main.o -c trap.cpp
trap.cpp: In function 'trap trap(std::string)':
trap.cpp:11: error: return type 'struct trap' is incomplete
trap.cpp:11: error: only constructors take base initializers
trap.cpp: At global scope:
trap.cpp:13: error: invalid use of undefined type 'struct trap'
trap.cpp:8: error: forward declaration of 'struct trap'
trap.cpp: In member function 'void trap::load()':
trap.cpp:15: error: 'ifstream' was not declared in this scope
trap.cpp:15: error: expected `;' before 'ifile'
trap.cpp:16: error: 'ifile' was not declared in this scope
trap.cpp:18: error: 'string' was not declared in this scope
trap.cpp:18: error: expected `;' before 'line'
trap.cpp:19: error: 'ifile' was not declared in this scope
trap.cpp:19: error: 'line' was not declared in this scope
trap.cpp:20: error: 'trap_list' was not declared in this scope
trap.cpp:21: error: 'trap_list' was not declared in this scope
trap.cpp: At global scope:
trap.cpp:25: error: invalid use of undefined type 'struct trap'
trap.cpp:8: error: forward declaration of 'struct trap'
trap.cpp: In member function 'void trap::print()':
trap.cpp:27: error: 'cout' was not declared in this scope
trap.cpp:27: error: 'trap_list' was not declared in this scope
trap.cpp:27: error: 'endl' was not declared in this scope
trap.cpp:28: error: 'list' was not declared in this scope
trap.cpp:28: error: 'string' was not declared in this scope
trap.cpp:28: error: '::iterator' has not been declared
trap.cpp:28: error: expected `;' before 'iter'
trap.cpp:28: error: 'iter' was not declared in this scope