Re: [tor-dev] Building TOR using Visual Studio

2014-10-18 Thread Erik de Castro Lopo
teor wrote: Are there no-cost, non-license-restricted compilers available for Windows that support C99? Yes, the MinGW compilers fit the bill. Erik -- -- Erik de Castro Lopo http://www.mega-nerd.com/

Re: [tor-dev] Building TOR using Visual Studio

2014-10-18 Thread Sebastian Hahn
On 18 Oct 2014, at 06:29, teor teor2...@gmail.com wrote: Are there no-cost, non-license-restricted compilers available for Windows that support C99? This could be a way out for those who don't wish to pay for the VS 2013 upgrade. But it's a bit more of a barrier than using an existing

Re: [tor-dev] Building TOR using Visual Studio

2014-10-18 Thread Lunar
teor: Nick Mathewson: * Some people want to use paid versions of Visual Studio, and have paid for a version earlier than VS2013, and don't want to pay for a newer one. I sympathize with this: I've been on paid upgrade treadmills myself, and it's always tempting to save money by skipping

Re: [tor-dev] Building TOR using Visual Studio

2014-10-18 Thread Adam Shostack
On Sat, Oct 18, 2014 at 03:29:51PM +1100, teor wrote: | | On 18 Oct 2014, at 13:29 , tor-dev-requ...@lists.torproject.org wrote: | Date: Fri, 17 Oct 2014 22:29:02 -0400 | From: Nick Mathewson ni...@freehaven.net | To: tor-dev@lists.torproject.org | Subject: Re: [tor-dev] Building TOR using

Re: [tor-dev] Building TOR using Visual Studio

2014-10-18 Thread Артур Истомин
On Sat, Oct 18, 2014 at 03:29:51PM +1100, teor wrote: * Some compilers for weird old hardware have never been upgraded to even rudimentary C99 support, and trying to build code with those weird old compilers is a good way to expose some bugs. I sympathize with this too: there was one

Re: [tor-dev] Building TOR using Visual Studio

2014-10-17 Thread M. Ziebell
Looking at this blog post [1] even the support for C99 in VS2013 is limited. I don't know if tor hit the limitations, that's for you to decide. C99 is 15 years old ... It should be sane to use it. [1]

Re: [tor-dev] Building TOR using Visual Studio

2014-10-17 Thread Sebastian Hahn
On 17 Oct 2014, at 18:07, M. Ziebell ziebell_ma...@posteo.de wrote: Looking at this blog post [1] even the support for C99 in VS2013 is limited. I don't know if tor hit the limitations, that's for you to decide. C99 is 15 years old ... It should be sane to use it. Please also see bug

Re: [tor-dev] Building TOR using Visual Studio

2014-10-17 Thread Erik de Castro Lopo
teor wrote: I just looked over this patch and it looks safe and simple to commit (haven't have a chance to compile it yet though). The correct order of declaration, asserts, and initialisation / assignment has been preserved in the code. If we commit this patch, we should probably change

Re: [tor-dev] Building TOR using Visual Studio

2014-10-17 Thread Nick Mathewson
On Fri, Oct 17, 2014 at 5:01 PM, Erik de Castro Lopo mle+to...@mega-nerd.com wrote: teor wrote: I just looked over this patch and it looks safe and simple to commit (haven't have a chance to compile it yet though). The correct order of declaration, asserts, and initialisation / assignment

Re: [tor-dev] Building TOR using Visual Studio

2014-10-17 Thread Erik de Castro Lopo
Nick Mathewson wrote: Keep in mind that C99 is 15 years old now. snip Personally, I think I'm still inclined to say that the day for a more modern style has arrived. I'm totally with you on this. I've been coding C to meet the C99 standards since the mid-2000s :-). Erik --

Re: [tor-dev] Building TOR using Visual Studio

2014-10-17 Thread teor
On 18 Oct 2014, at 13:29 , tor-dev-requ...@lists.torproject.org wrote: Date: Fri, 17 Oct 2014 22:29:02 -0400 From: Nick Mathewson ni...@freehaven.net To: tor-dev@lists.torproject.org Subject: Re: [tor-dev] Building TOR using Visual Studio * Some people want to use paid versions of Visual

[tor-dev] Building TOR using Visual Studio

2014-10-16 Thread Владимир Мартьянов
Hi all! I'm new at this list :-) I decided to understand how TOR works and I want to build it in VS to debug it and explore it's internals. I have Visual Studio on my first PC and I got errors during build on address.c. I investigated the reason: commit 0ca83872468af59b94e14fe7fdfcb38cb5a3f496 I

Re: [tor-dev] Building TOR using Visual Studio

2014-10-16 Thread Nick Mathewson
On Thu, Oct 16, 2014 at 7:40 AM, Владимир Мартьянов vilgefo...@gmail.com wrote: Hi all! I'm new at this list :-) I decided to understand how TOR works and I want to build it in VS to debug it and explore it's internals. I have Visual Studio on my first PC and I got errors during build on

Re: [tor-dev] Building TOR using Visual Studio

2014-10-16 Thread Владимир Мартьянов
As far as I know only Visual Studio 2013 has C99 support. Upgrade to VS2013 costs about 300$ for commercial versions, a lot of code was written in earlier versions... By the way, I fixed only about 10 lines of code and finally I managed to build the TOR using VS2008, so i think it's not so hard to

Re: [tor-dev] Building TOR using Visual Studio

2014-10-16 Thread Артур Истомин
On Thu, Oct 16, 2014 at 02:16:32PM -0400, Nick Mathewson wrote: On Thu, Oct 16, 2014 at 7:40 AM, Владимир Мартьянов vilgefo...@gmail.com wrote: Hi all! I'm new at this list :-) I decided to understand how TOR works and I want to build it in VS to debug it and explore it's internals. I