VS .NET and v0.303

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

Moderator: Moderators

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

VS .NET and v0.303

Post by TheParanoidOne » 2003-11-16 08:09

Trying to compile v0.303 under VS.NET.

I've got STLPort 4.6 and WTL 7 in the following order in the includes:
Image

There seems to be a problem with STL, as I get the following errors (with unnecessary crap stripped away):

Code: Select all

------ Build started: Project: client, Configuration: Debug Win32 ------

Compiling...
stdinc.cpp
e:\Apps\include\stlport\stl\_iterator_base.h(98) : fatal error C1507: previous user errors and subsequent error recovery halt further compilation

------ Build started: Project: MakeDefs, Configuration: Debug Win32 ------

Compiling...
Util.cpp
e:\Apps\include\stlport\stl\_iterator_base.h(98) : fatal error C1507: previous user errors and subsequent error recovery halt further compilation
StringTokenizer.cpp
e:\Apps\include\stlport\stl\_iterator_base.h(98) : fatal error C1507: previous user errors and subsequent error recovery halt further compilation
StdAfx.cpp
e:\Apps\include\stlport\stl\_iterator_base.h(98) : fatal error C1507: previous user errors and subsequent error recovery halt further compilation
SimpleXML.cpp
e:\Apps\include\stlport\stl\_iterator_base.h(98) : fatal error C1507: previous user errors and subsequent error recovery halt further compilation
MakeDefs.cpp
e:\Apps\include\stlport\stl\_iterator_base.h(98) : fatal error C1507: previous user errors and subsequent error recovery halt further compilation

------ Build started: Project: DCPlusPlus, Configuration: Debug Win32 ------

Compiling...
stdafx.cpp
e:\Apps\include\stlport\stl\_iterator_base.h(98) : fatal error C1507: previous user errors and subsequent error recovery halt further compilation


Every error seems to point to the file "_iterator_base.h", line 98.

I tried using STL 4.5-1020, just in case. That went well until the linking stage. I can talk about those errors if anyone feels they are relevant. What's slightly interesting is that the versions of _iterator_base.h in 4.6 and 4.5-1020 are identical ...

Any help greatly appreciated.
The world is coming to an end. Please log off.

DC++ Guide | Words

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-11-16 08:53

Hmm, no problems here using vs .net 2003 and include dirs are identical.

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

Post by TheParanoidOne » 2003-11-16 10:04

joakim_tosteberg wrote:Hmm, no problems here using vs .net 2003 and include dirs are identical.

I'm not using 2003.
The world is coming to an end. Please log off.

DC++ Guide | Words

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-11-16 10:11

TheParanoidOne wrote:
joakim_tosteberg wrote:Hmm, no problems here using vs .net 2003 and include dirs are identical.

I'm not using 2003.
Oh, sorry :oops:
Which version when? Or are there oe just named vs .net?

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

Post by TheParanoidOne » 2003-11-16 12:28

Just plain VS .NET, ie. VS 7
The world is coming to an end. Please log off.

DC++ Guide | Words

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

Post by Gasman1015 » 2003-11-16 19:21

Would using the old project file from CVS for VC7 be of any help.??

Is VS 7 same as VC 7.
Always remember you're unique, just like everyone else.

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

Post by TheParanoidOne » 2003-11-16 19:49

Gasman1015 wrote:Would using the old project file from CVS for VC7 be of any help.??

Well, I just used the current ones and modified them as stated in the following thread: http://dcplusplus.sourceforge.net/forum ... php?t=5880

I have a number of older versions of the source code, so I guess I could grab those project files and add the appropriate new files to them. :shrug:
But I'm still thinking it may be an STL issue.

Gasman1015 wrote:Is VS 7 same as VC 7.

Yes, that's what I meant. :)
The world is coming to an end. Please log off.

DC++ Guide | Words

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

Post by Gasman1015 » 2003-11-18 18:35

TheParanoidOne wrote:But I'm still thinking it may be an STL issue


No, I can not see that, it compiles fine on VS Net 2003, and the only difference being you version.

Have you succeeded yet.

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

Post by TheParanoidOne » 2003-11-18 19:34

Gasman1015 wrote:Have you succeeded yet.

Not yet, but I haven't really attempted anything drastically new. Still getting the same messages as in the first post.
The world is coming to an end. Please log off.

DC++ Guide | Words

liny
Posts: 30
Joined: 2003-11-01 09:18

Re: VS .NET and v0.303

Post by liny » 2003-11-19 22:47

TheParanoidOne wrote:

Code: Select all

------ Build started: Project: client, Configuration: Debug Win32 ------

Compiling...
stdinc.cpp
e:\Apps\include\stlport\stl\_iterator_base.h(98) : fatal error C1507: previous user errors and subsequent error recovery halt further compilation



Every error seems to point to the file "_iterator_base.h", line 98.


I am using vs2002.
I met the same problem and solve it by modify two config settings of stlport back which is obviously changed by arnetheduck for vs2003.

Sorry, I cann't remember which setting, but you can use windiff to compare with standard stlport to find out. Both of these setting about HP...Iterator...
One file is _stl_user_config.h, the other is another directory, sorry I forgot.
Remember do not change setting about iostream, because dc++ do not like it.

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

Post by TheParanoidOne » 2003-11-20 07:47

The only significant change in stl_user_config.h between versions 4.6 and 4.5.1020 is that the following line:

Code: Select all

#define _STLP_NO_ANACHRONISMS 1
was uncommented.

So I commented it out, and I basically get to the situation I was at when I used STL 4.5.1020, as mentioned above. All projects compile and link, except for DCPlusPlus which throws all sorts of linking errors. Basically, what is being described in the first post of this thread.

[An hour of fiddling and searching goes by ...]

But then I followed the advice in this post and it now works!

So, to summarise:
* Roll back to STLPort 4.5.1020
* In DCPlusPlus Project Dependencies, make sure bzip2, client and zlib are ticked.
* Build! :D

I say it to everyone else, and I'll say it again: The forums are full of useful information! Search is my friend, and your friend too. :)

Thanks also to all the people who responded. :)
The world is coming to an end. Please log off.

DC++ Guide | Words

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

Post by TheParanoidOne » 2003-11-20 09:46

Note: The above also applies to v0.304
The world is coming to an end. Please log off.

DC++ Guide | Words

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-11-20 12:58

:) Glad to see you're able to get it working!

Locked