I get this error when compiling : f:\DCPlusPlus\DCPlusPlus-CVS-src\latest_release\dcplusplus\client\StringDefs.cpp(1085): fatal error C1010: unexpected end of file while looking for precompiled header directive
The first line gets cut out of MakeDefs.cpp : #include "stdinc.h"
If I put in a blank as first line in MakeDefs.h it compiles ok.
I obviously have some kinda mismatch in my code. I just don't know what to look for. I've done a compare to another branch (that compiles fine) and I don't find the diff.
Anyone with a hint on what to look for?
Ps. I assume there is some thread somewhere about makedefs.py. I'll search for it. In the meantime - please feel free to add it here
C1010: unexpected end of file
Moderator: Moderators
C1010: unexpected end of file
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
I've never seen this error before. Assuming StringDefs.h, ResourceManager.h, and ResourceManager.cpp are all stock, I don't know why you'd be getting this problem. You could check the two .vcproj files (client and DCPlusPlus), since the directive to include the precompiled header can be set on a per file basis (and stored in the project files).
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
I'm sorry. Of course I meant StringDefs.h/cpp, my mistake. And I do use makedefs.py to create StringDefs.cpp and Example.xml.
Anyway, I've found the error. I've been using an editor called EditPlus for a long time. My relationship with this editor will end here and now. This editor was the cause of the problem. It obviously inserted something ( I'm not sure if it's a BOM or something else )
I'm sorry If I confused you people with my syntactic errors. I'ts not very good to be too tired when trying to describe a problem.
So, thanks anyway for the answers.
Ps. the reason I haven't answered earlier was because I didn't get a note in my gmail, and I haven't seen this thread updated either.
Anyway, I've found the error. I've been using an editor called EditPlus for a long time. My relationship with this editor will end here and now. This editor was the cause of the problem. It obviously inserted something ( I'm not sure if it's a BOM or something else )
I'm sorry If I confused you people with my syntactic errors. I'ts not very good to be too tired when trying to describe a problem.
So, thanks anyway for the answers.
Ps. the reason I haven't answered earlier was because I didn't get a note in my gmail, and I haven't seen this thread updated either.
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
Now I seem to have to correct myself once again.....I did some deeper tracing/testing here and it actually looks like TortoiseCVS is the reason from the beginning.
I downloaded a fresh CVS, added some /* comments */ to the code (with notepad) and did a diff against sf CVS and guess what........I got it again.
So, I uninstalled every trace of Tortoise, downloaded the latest stable version (1.8.10 if I'm not mistaken) and tried again - problem gone.
I'm not sure what to say about this. I don't know what to blame anymore. I'm not sure if I, in some point in time, fiddled with TCVS and forgot about it. Anyway, problem fixed. At least I learned something from this: I talk too much too soon
I downloaded a fresh CVS, added some /* comments */ to the code (with notepad) and did a diff against sf CVS and guess what........I got it again.
So, I uninstalled every trace of Tortoise, downloaded the latest stable version (1.8.10 if I'm not mistaken) and tried again - problem gone.
I'm not sure what to say about this. I don't know what to blame anymore. I'm not sure if I, in some point in time, fiddled with TCVS and forgot about it. Anyway, problem fixed. At least I learned something from this: I talk too much too soon
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us