On Oct 24, 2013, at 2:19 PM, Christopher Sean Morrison wrote: > On Oct 24, 2013, at 12:39 PM, Daniel Roßberg wrote: > >> exp2cxx crashes repeatedly during the BRL-CAD build with MSVC. The >> cause seems to be a mixing of malloc() and free() between the >> different C-runtimes in the .exe and .dll files. For some reason STEP >> is compiled with the /MT flag (i.e. static linked C-runtime). But it >> should be compiled with the /MD flag. The CMAKE_C_FLAGS_~ variables >> are all OK and I couldn't find any other place where the /MT could be >> set. >> >> Any idea? > > Is there any hint in your CMakeCache.txt? I've scanned the entire hierarchy > and find no manipulation of MD or MT manipulation, so it "should" be CMake's > default (i.e., /MD).
Digging a little more, I did find MD explicitly in ./src/other/tcl/CMakeLists.txt but still no other concrete setting in our build. There are references in the build files for Tcl/Tk, libpng, libz, IncrTcl, and TkTable. If system-installed versions of any of those are being used, perhaps they are the source of the MT runtime. Cheers! Sean ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ BRL-CAD Developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/brlcad-devel
