[tor-bugs] #13081 [Tor]: Fix build with Visual Studio in Windows

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Sep 11 01:18:53 UTC 2014


#13081: Fix build with Visual Studio in Windows
-------------------------------+--------------------------------
     Reporter:  NewEraCracker  |      Owner:
         Type:  defect         |     Status:  needs_revision
     Priority:  normal         |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor            |    Version:
   Resolution:                 |   Keywords:  tor-relay msvc
Actual Points:                 |  Parent ID:
       Points:                 |
-------------------------------+--------------------------------

Comment (by NewEraCracker):

 More one night of work.

 Build process has been further improved.
 - Use /MD instead of /MT in building process. This will link everything to
 msvcr100.dll and is consistent with OpenSSL and Zlib builds in Windows.
 This also requires libevent to be built with /MD, a new tutorial will be
 uploaded shortly detailing new build process with this change.
 - More flags to compilation, common warnings enabled and deprecation
 warnings disabled, this behavior is consistent with Zlib builds in
 Windows.
 - Added missing io.h includes so VC knows better the function definitions,
 this was done in a coherent way as I have analyzed other source code files
 where io.h is included already.
 - Define HAVE_EXTERN_ENVIRON_DECLARED, MSVCR has that declared internally
 and we link to that with /MD.
 - Tests building improved, build the tests that were still missing.
 - Profile Debug renamed to Test, this is more consistent as we don't do
 any real Debug builds (yet) with MSVC.

 I will be attaching new diff shortly.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13081#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list