Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.
Moderator: Moderators
-
Azazzell0
- Posts: 2
- Joined: 2005-12-07 13:01
- Location: Warsaw, Poland
Post
by Azazzell0 » 2005-12-07 13:07
Ok, so I have read all the previous topics on compiling DC++ on VS2005... And all the tips proved useful, but now I am stuck with another problem: apparently VS refuses to compile the StringDefs.h at some point stating, that:
Code: Select all
Error 47 error C2143: syntax error : missing '}' before 'constant' c:\documents and settings\administrator.azazzello\desktop\dcplusplus-0.674-src\client\stringdefs.h 488
Error 48 error C2059: syntax error : 'constant' c:\documents and settings\administrator.azazzello\desktop\dcplusplus-0.674-src\client\stringdefs.h 488
Error 49 error C2143: syntax error : missing ';' before '}' c:\documents and settings\administrator.azazzello\desktop\dcplusplus-0.674-src\client\stringdefs.h 566
Error 50 error C2238: unexpected token(s) preceding ';' c:\documents and settings\administrator.azazzello\desktop\dcplusplus-0.674-src\client\stringdefs.h 566
And the lines 487-489 look as innocently as:
Code: Select all
SIZE, // "Size"
SIZE_MAX, // "Max Size"
SIZE_MIN, // "Min Size"
... and they are just the same enum type declarations as any other line previous or next... Anyone have a clue on how to solve this?
-
joakim_tosteberg
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
Post
by joakim_tosteberg » 2005-12-07 15:40
I made a patch to compile DC++ against visual stuido .net 2005 beta2 a while ago that is avaible at
http://www.dcpp.net/bugs/show_bug.cgi?id=689 and it have been working correctly on the release version as well for me, even though most of it is no longer needed in the latest CVS version due to changes in the code.
But for the problem you are posting about is it a problem with the fact that vs 2005 has SIZE_MAX defined in some header, so you will have to rename that one in DC++ to get it to compile.
-
Azazzell0
- Posts: 2
- Joined: 2005-12-07 13:01
- Location: Warsaw, Poland
Post
by Azazzell0 » 2005-12-07 18:06
joakim_tosteberg wrote:I made a patch to compile DC++ against visual stuido .net 2005 beta2 a while ago that is avaible at
http://www.dcpp.net/bugs/show_bug.cgi?id=689 and it have been working correctly on the release version as well for me, even though most of it is no longer needed in the latest CVS version due to changes in the code.
But for the problem you are posting about is it a problem with the fact that vs 2005 has SIZE_MAX defined in some header, so you will have to rename that one in DC++ to get it to compile.
Thanks, that made the difference ::-)
-
cforce
- Posts: 1
- Joined: 2006-01-04 11:34
Post
by cforce » 2006-01-10 19:52
I did not undertstand which MAX_Size exactly do i have to rename and what is with the references which used that var?
Would you please suplly exact commands to fix that problem?
Tx in advance.