Hi there Lauren,
It seems like These errors are the main cause:
1>c:\users\lauren\documents\visual studio 2010\projects\composition\composition\filter.h(34): error C2146: syntax error : missing ';' before identifier 'm_oFiltRes'
1>c:\users\lauren\documents\visual studio 2010\projects\composition\composition\filter.h(34): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\lauren\documents\visual studio 2010\projects\composition\composition\filter.h(34): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int |
They cause the following error, that the class cannot be declared properly, and when it can't be declared properly, you can't use it:
1>c:\users\lauren\documents\visual studio 2010\projects\composition\composition\filtermain.cpp(31): error C2065: 'Filter' : undeclared identifier |
The ones below that are a consequence of that.
Now, the very first error states
syntax error : missing ';' before identifier 'm_oFiltRes' |
, but strangely enough I can't see that identifier anywhere in your filter.h file?
Also, you are including capacitor.h and resistor.h in both the main and the filter.h files, this causes unnecessary double inclusions, which eats up memory. Search for "c++ include guards" to get that resolved.
I think if you get to the bottom of that
m_oFiltRes
identifier, you will have your solution.
If you can't find the problem, perhaps post all of your code files to pastebin.com and give us the links here.
All the best,
NwN