Compile problem 0.262

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Stebo
Posts: 6
Joined: 2003-09-07 12:14

Compile problem 0.262

Post by Stebo » 2003-09-24 16:50

Hy, i tried compiling the 0.262 source code without making any modifications using VC6. When i compiled 0.261 it didnt gave any errors, but compiling 0.262 gives me 292 errors :(

All errors are found in util.h and user.h and is related with next code:
static const size_t bucket_size = 4;
static const size_t min_buckets = 8;

each line where this code stands in the header files produces an error-code

E:\Project C\dc++ 0.262\client\Util.h(48 ) : error C2258: illegal pure syntax, must be '= 0'
E:\Project C\dc++ 0.262\client\Util.h(52) : see reference to class template instantiation 'PointerHash<T>' being compiled
E:\Project C\dc++ 0.262\client\Util.h(48 ) : error C2252: 'bucket_size' : pure specifier can only be specified for functions
E:\Project C\dc++ 0.262\client\Util.h(52) : see reference to class template instantiation 'PointerHash<T>' being compiled


Each error is in a different line-number but it returns to the same type of code

Does any1 know how to solve this problem...?

Thx in advance
Last edited by Stebo on 2003-09-24 17:59, edited 1 time in total.

Gasman1015
Posts: 184
Joined: 2003-05-26 16:29
Location: UK

Post by Gasman1015 » 2003-09-24 17:44

Can you give me a link to the source code. Please.... :)
Always remember you're unique, just like everyone else.

TheNOP
Posts: 275
Joined: 2003-07-08 02:41
Location: Quebec

Post by TheNOP » 2003-09-24 17:53

Gasman1015 wrote:Can you give me a link to the source code. Please.... :)


same as usual here
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

Gasman1015
Posts: 184
Joined: 2003-05-26 16:29
Location: UK

Post by Gasman1015 » 2003-09-24 18:19

TA.. :)
Always remember you're unique, just like everyone else.

Stebo
Posts: 6
Joined: 2003-09-07 12:14

Post by Stebo » 2003-09-24 19:47

Btw, is there some1 who was able to compile 0.262 with VC6 without having compiling errors..???

kone
Posts: 2
Joined: 2003-05-24 23:49

Post by kone » 2003-09-27 00:43

Dirty fix which might screw your computer totally after running the program. :roll: ...at least it runs after this. :wink:
Remove these lines from user.h and util.h:

Code: Select all

  static const size_t bucket_size = 4;
  static const size_t min_buckets = 8;

Also you might encounter a linking error which can be resolved by adding couple of files to the project:
To the DCPlusPlus files add these files:
    TextFrame.h -> Header files
    TextFrame.cpp -> Source files

Hopefully someone will give us a real fix since I don't code

-- never_coded_anything_in_my_life.

Twink
Posts: 436
Joined: 2003-04-01 04:31
Location: New Zealand

Post by Twink » 2003-09-27 05:39

did u get the different stl port that arnie uses now? its mentioned in the changelog

Stebo
Posts: 6
Joined: 2003-09-07 12:14

Post by Stebo » 2003-09-27 13:52

I still used the STLPort from version 0.261, but when i go to the download section i dont see the new version of STLPort .

Can some1 plz post a link to STLPort 4.5.0725 so i can have a try with this version..

Thx in advance...

Twink
Posts: 436
Joined: 2003-04-01 04:31
Location: New Zealand

Post by Twink » 2003-09-27 22:43


Stebo
Posts: 6
Joined: 2003-09-07 12:14

Post by Stebo » 2003-09-28 01:42

I had a try with the new stlport, but it didnt change anything.. :(

I guess i will need to get me vs.net....koz it seems that these pple dont have mayor compile probs...

thx for the link anyway....

Greetz

Who is online

Users browsing this forum: Google [Bot] and 0 guests