Closed GoogleCodeExporter closed 9 years ago
Hi Chris - thanks for your report.
Did you perhaps link against Gtest libs built with /MT flag rather than /MD ?
The Gtest download has 2 solution files: \gtest-1.5.0\msvc\gtest.sln and
\gtest-1.5.0\msvc\gtest-md.sln
The former creates the gtest libs with /MT flag set and the latter with /MD.
maidsafe-dht defaults to /MD (as does protocol buffers) and MSVC requires all
linked
libs to have been compiled with the same version of the C runtime lib - set
using the
/MD or /MT flags.
So to link maidsafe-dht and gtest, you need to build the gtest-md solution. If
you
don't use gtest elsewhere, you'd probably be best to delete your current gtest
libs
before linking maidsafe-dht, or else download a fresh instance of gtest, build
the
gtest-md solution and pass this path when running cmake for maidsafe-dht using
"cmake
.. -DGTEST_ROOT_DIR=<Path to gtest root>"
Please don't hesitate to reply if this doesn't resolve your problem.
All the best,
Fraser.
Original comment by fraser.hutchison@gmail.com
on 3 May 2010 at 3:35
We should close this in 24 hours if there are no more reported errors of this
kind.
Perhaps with a note on the devbuild to watch out for such events.
Original comment by irvine.d...@gmail.com
on 5 May 2010 at 5:13
Original issue reported on code.google.com by
xtopher....@gmail.com
on 30 Apr 2010 at 9:59