Problem compiling latest CVS with STLPort 4.6.2

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

Moderator: Moderators

Locked
Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Problem compiling latest CVS with STLPort 4.6.2

Post by Guitarm » 2004-05-10 06:46

I have problems compiling the latest CVS with STLPort 4.6.2 (I got this one from GargoyleMT's site), I get the following errors (all in Util.h):

Code: Select all

e:\DCPlusPlus\DCPlusPlus-CVS-src\dcplusplus\client\Util.h(538): error C2143: syntax error : missing ';' before '<'
e:\DCPlusPlus\DCPlusPlus-CVS-src\dcplusplus\client\Util.h(538): error C2238: unexpected token(s) preceding ';'
e:\DCPlusPlus\DCPlusPlus-CVS-src\dcplusplus\client\Util.h(539): error C2653: 'CountryList' : is not a class or namespace name
e:\DCPlusPlus\DCPlusPlus-CVS-src\dcplusplus\client\Util.h(539): error C2955: '_STL::iterator' : use of class template requires template argument list
e:\DCPlusPlus\DCPlusPlus-CVS-src\dcplusplus\client\Util.h(541): error C2146: syntax error : missing ';' before identifier 'countries'
e:\DCPlusPlus\DCPlusPlus-CVS-src\dcplusplus\client\Util.h(541): error C2501: 'Util::countries' : missing storage-class or type specifiers
Can anyone guide me around this?

Regards
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-05-11 05:29

Ok, Is it that no one is interested or is it that no one knows?, I would assume the first alternative. If anyone has a clue, idea or hint about this I would be very glad if you could give me one.


Regards
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."

ivulfusbar
Posts: 506
Joined: 2003-01-03 07:33

Post by ivulfusbar » 2004-05-11 05:42

Personly i have no issues with compiling CVS. So not much to say.
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-05-11 05:52

I haven't tried the 4.6.2. I am still using 4.6.0, with no problems. What happens if you go back to this version?
The world is coming to an end. Please log off.

DC++ Guide | Words

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-05-11 06:41

I get the same errors. But It seems like there's some stuff that needs to be fixed either in DC++ source or/and STLPort 4.6.2 so I'd better wait til' there's an official 0.402 out I guess. I just thought that the CVS (0.402) was "compileable" and possible to test but it doesn't seem that way.

Ok, thanks anyway for your answers and go out and get some sun in your face :wink:
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-05-11 06:52

Guitarm wrote:go out and get some sun in your face :wink:

I'd need to get rid of those clouds first. :)
The world is coming to an end. Please log off.

DC++ Guide | Words

psf8500
Posts: 23
Joined: 2003-03-04 18:51
Contact:

Post by psf8500 » 2004-05-11 12:18

I got the same errors. But only when building MakeDefs.

Adding this:

Code: Select all

#include "../client/stdinc.h"


To MakeDefs\StdAfx.h seemed to fix it.

I had no problems building the rest of the project.

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-05-11 14:42

Wow!, thanks alot!, Yes, it seems to work fine. Can I ask you how you found this out?. Now when I look at it it seems pretty logical that an

Code: Select all

#include <map>
is pretty necessary for the

Code: Select all

typedef map <u_int32_t, u_int16_t> CountryList;
That is the one isn't it?

Well, again, thank you very much!, you saved me alot of time (which I don't have at the moment)

Regards
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."

psf8500
Posts: 23
Joined: 2003-03-04 18:51
Contact:

Post by psf8500 » 2004-05-11 15:36

Guitarm wrote:Can I ask you how you found this out?


Well typedef map <u_int32_t, u_int16_t> CountryList; was obviosly causing the problem as you seem to have figured out already. The fact that it compiled ok in main build suggested that something was included in that which wasn't included in the makedefs project.

First thing i tried was including stdinc.h as i know it has lots of includes :wink:

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-05-11 16:08

Yeah, I got stuck there and I didn't dig deeper. I'm glad you did!. Thanks again and maybe I can be of help in some other matter in the future.

Regards
"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."

Locked