rollie:
re: 1, 2, 5, 6, 7) Thank you for catching those typos and mistakes! I'm surprised the compiler didn't issue any errors or warnings for them (other then 5, it would have caught that later though.)
re: 3) Ignore the extensions for now, It's very likely they will be changed/removed later. (Also, I though .hpp was perfectly fine for C++ Header files.)
re: 4) That's what I had originally (see previous posts,) and it's very likely where my compilation problem still lies (see the warning 6 posts up) as changing it to #include creates a circular dependency issue with files Array.hpp, String.hpp, and ArrayIndexOutOfBoundsException.hpp.
re: ...) (See "re: 1"; also, I can tell you took the time to read though the files, thank you very much.
Please don't give up. I'm sure I could fix these... in time, but I really am at a loss here. I've never had this kind of problem before. My only current solution is to push class declarations/definitions Array, String, ArrayIndexOutOfBoundsException, and method definitions for Array all into the same file, and I don't want to do that.
After I change line 28 in Array.hpp from
class ArrayIndexOutOfBoundsException;
to
#include "ArrayIndexOutOfBoundsException.hpp"
I get the following error when trying to compile Object.cpp:
Object.cpp
c:\users\christopher\cpp\rsc\mhc8\Exception.hpp(16) : error C2079: 'mhc8::mhc8::Exception::msg' uses undefined class 'mhc8::String'
|
I will update the file on my server for you all; they can still be found at
http://www.mathhead200.com/cpp/mhc8.zip
At first changing it from an #include to a forward declare seemed weird to me (and it still does,) but it worked in the first small test case (first post,) so I though it was going in the right direction; but I've just changed it back. The errors from when it was a forward declaration are in a previous post.