Opened 9 years ago

Closed 9 years ago

#9541 closed Bugs (invalid)

crash when using boost 1.55.0 from an application that is based on libstdc++ on Mac

Reported by: mu.cai@… Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.55.0 Severity: Problem
Keywords: crash from libstdc++ application Cc:

Description

The following are the steps to reproduce the defect: 1) Create a Command Line Tool application in XCode and make sure its c++ standard library is libstdc++; 2) add the following code in the file main.cpp:

boost::filesystem::path filePath = "/Users/admin/test.log"; boost::filesystem::path bfsFileName = filePath.filename(); std::string fileName = bfsFileName.c_str();

3) Run the application and it always crashes at the last line.

My XCode is 5.0 and my os is 10.8.5.

Change History (2)

comment:1 by anonymous, 9 years ago

BOOST is built using clang++ and libc++

in reply to:  1 comment:2 by Steven Watanabe, 9 years ago

Resolution: invalid
Status: newclosed

Replying to anonymous:

BOOST is built using clang++ and libc++

Well, there's your problem. You can't mix two different standard libraries like that.

Note: See TracTickets for help on using tickets.