It was working fine for a while, and now it's not. Once again, it failed to open the Calendar.hxx file. This time, to test whether it was the Calendar file that was F'd up, or something else, I used #include "Event.hxx" (even.hxx is included in calendar.hxx, btw, and I do use #ifndef #define's to be sure it doesn't compile too much). I got the same error saying that it couldn't find Event.hxx. This is after it had been including both of them successfully dozens of times. I don't know what I did. I didn't move the files around or anything, but it just stopped working. I then did the following code for my main file:
#include <iostream.h>
void main(){}
and came up with 109 errors in iostream.h. They were mostly things like ambiguous definition, which is odd because I have NEVER messed around with that file, no one else has on my computer, and I was using it just fine earlier today. I then deleted my main file from the workspace, added a new one, did the exact same code (#include <iostream.h> \n void main(){}), and it compiled successfully. I now have the following code:
//test.cxx
Code:
#include "Event.hxx"
void main(){}
//Event.hxx
Code:
#ifndef EVENT_HXX
#define EVENT_HXX
/*
commented out enums and #includes
*/
class Event
{
/*
commented out all methods and variables
*/
};
#endif
//Event.cxx
Code:
#include "Event.hxx"
/*
commented out all function definitions
*/
Those are the only 3 files currently in my workspace, and that is ALL the code that is not commented out. I can tell because all the rest of it is green. I have made extra sure that I didn't forget to comment anything out.
I am getting extremely frustrated, as I really can't continue working on my class project (I'm doing the calendar portion of a personal finance manager in Win32). Considering I only have about 9 lines of code now in 3 files, I am pretty sure it's no bug of mine. I don't know what would be causing this. I haven't installed any new software in at least a month, and I've been using msvc++6 for about 2 years w/o uninstalling it. I have a virus scanner and firewall, and have no clue what is causing this. Maybe I should give up programming. Please help if you can, because I am completely lost.
~Sean Michael Simonsen