Patch for STL Port 4.5.3 to compile under VS.net 2003

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

Moderator: Moderators

Locked
Hydra
Posts: 4
Joined: 2003-04-20 16:10

Patch for STL Port 4.5.3 to compile under VS.net 2003

Post by Hydra » 2003-04-20 16:15

Use "patch -lp 1 < stlport4.5.3-vs.net-2003.diff" to apply the diff, I used the "patch" tool from cygwin. (adjust the -p parameter depending on your current directory at time of calling patch program)

Grab the file here:

http://www.zenadsl5874.zen.co.uk/temp/d ... -2003.diff

See my other post for a patch to get 0.242 compiling:

http://dcplusplus.sourceforge.net/forum ... 2004#12004

Please reply to this if you thought this post was useful.


[edit, by Sedulus]
with more and more people using vs.net2k3, it's time to stickify this baby ;)
thanks :)
[/edit]

Cloyd
Posts: 8
Joined: 2003-06-30 04:11

Post by Cloyd » 2003-07-01 04:37

Hi, I tried to use your patch but I've got a plenty of errors. I dunno, maybe it's my .NET 2003 fault (it's the final beta not the release version).
Before when I tried to build I had many errors with _string.c but now unfortunately errors are everywhere thoughout the code. I'll try to fix'em up in the next days (or weeks) and I'll let you know

Hydra
Posts: 4
Joined: 2003-04-20 16:10

Post by Hydra » 2003-07-01 06:09

Cloyd wrote:Hi, I tried to use your patch
it's not the patch, the problem is most likely to be that you didn't setup your include folders correctly or something.

Note this patch was for the stlport that's alreadby been configured for use with dc++ and not for the stock 4.5.3 from the stlport website. However, the changes that the patch makes will probably be the same.

all relating to the "typename" c++ keyword in the templates

Cloyd
Posts: 8
Joined: 2003-06-30 04:11

Post by Cloyd » 2003-07-01 06:24

I don't have only problems with my own version of dc++ but even building dc++ std... It builds correctly with vs6 and .NET but not on .NET 2003.

I dunno what it is... maybe it's .NET 2003's fault maybe mine...
The only thing i know is that i know to have configured correctly my include path and I had no problems before...

btw i don't have enough time to keep fixing (or even understand) the errors the compilers returns. I thank you for the time you dedicated to me but I think I'll go back with my old vs6.

enken
Posts: 5
Joined: 2003-07-16 00:12

Post by enken » 2003-07-16 00:31

I have .NET 2003 and was surprised that STL wouldn't compile correcting following the Compile.txt instructions. I identified the problem as relating to the "typename" keyword, so I was happy to see your patch.

Unfortunately, I too receive many -more- errors after applying the patch. I used the patch tool from cygwin, successfully, or so I thought. Also tried a native windows patch util, which is the same GNU code, with the same result. I'm definitely patching the dcpp version of stlport.

Can you provide more info on why .NET 2003 has this problem in the first place?

enken
Posts: 5
Joined: 2003-07-16 00:12

Post by enken » 2003-07-16 02:38

nm, I got it! I hadn't applied the DC++ patch correctly.

Patching both the DC++ source and the STL source gets everything working in .NET 2003. I'm still curious why this is necessary.

Anyway, thx a bunch.

Hydra
Posts: 4
Joined: 2003-04-20 16:10

Post by Hydra » 2003-07-16 13:50

enken wrote: Can you provide more info on why .NET 2003 has this problem in the first place?
yes

microsoft made it's C++ compiler ANSI compliant, which requires strict use of the "typename" keyword in templates.

Really, stl and dc++ should be fixed to be ANSI compliant code (which is actually one of the things these patches do)

The other fix they make is that the version number of microsoft's compilr changed, so conditional #ifdefs and #ifndef's that check the compiler version also need to be updated.

Simple really..

enken
Posts: 5
Joined: 2003-07-16 00:12

Post by enken » 2003-07-16 15:37

Gotcha - makes sense. Perhaps there is an option somewhere to go lax on the ANSI compliance for compatibility, but I agree that the code should be fixed permanently.

Thanks for taking the time to share your code updates.

MTW
Posts: 4
Joined: 2003-01-05 23:57

Post by MTW » 2003-08-17 00:13

This post was useful :!:

Works great.

Thank you!

:)

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

Post by Gasman1015 » 2003-08-31 23:22

This link gives you Stlport already modified if you have a problem with patch.
http://www.tesnetwork.cz/00007467/czdc/ ... VS2003.rar
Always remember you're unique, just like everyone else.

PPK
Posts: 9
Joined: 2003-01-03 17:11
Contact:

Post by PPK » 2003-10-11 01:34

Gasman1015 wrote:This link gives you Stlport already modified if you have a problem with patch.
http://www.tesnetwork.cz/00007467/czdc/ ... VS2003.rar
New STLPort-4.5.0725 from dc++ sourceforge download working with .net 2003 without problems for me. Now i delete this patched version from my webspace on tesnetwork.cz
Sorry i want space for new CZDC++ releases :D

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 09:32
Contact:

Post by Sedulus » 2003-10-11 05:27

thanks :)
.. unstickifying
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

Locked