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: | 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)
follow-up: 2 comment:1 by , 9 years ago
comment:2 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
BOOST is built using clang++ and libc++