26 Aug 15:20
[filesystem] Boost 1.36 issue on Win64
From: <Noman_Khan <at> elixir.com>
Subject: [filesystem] Boost 1.36 issue on Win64
Newsgroups: gmane.comp.lib.boost.devel
Date: 2008-08-26 13:22:49 GMT
Subject: [filesystem] Boost 1.36 issue on Win64
Newsgroups: gmane.comp.lib.boost.devel
Date: 2008-08-26 13:22:49 GMT
Hi all
I am trying to use Boost library on 64 bit windows and it is crashing
whenever i call a boost function. I am using boost 1.36 with VS2008 and i
have used the bellow line to compile boost's 64 bit version.
bjam debug release threading=multi --toolset=msvc-9.0 architecture=x86
address-model=64
I am using BOOST_ALL_DYN_LINK preprocessor to link to boost.
It crashes after saying that heap may be corrupted. Also it works fine if
compiled for 32 bit windows. Here is a sample code that replicates the
issue:
/********************************************/
#include "boost/filesystem.hpp"
int wmain(int argc, wchar_t* argv[])
{
wchar_t path[] = L"c:/temp/test";
if(boost::filesystem::exists(path) )
{
printf("Path exists.\n");
}
else
{
printf("Path does not exists.\n");
}
return 0;
(Continue reading)
RSS Feed