c++ - Works with libc++, segmentation fault with listdc++. [MacOs Sierra, Boost, Clang] -


i want mitsuba working on mac, manage compile , got error @ runtime. tried manage generate simple test, show bug :

#include <boost/filesystem/operations.hpp> #include <iostream>  namespace fs = boost::filesystem;  int main(int argc, char*argv[]) {         fs::path test = fs::canonical("/users/stephane-lb/projects/");         return 0; } 

if compile using following command, working clang++ boosttest.cpp -lboost_filesystem -lboost_system

but if use: clang++ boosttest.cpp -lboost_filesystem -lboost_system -stdlib=libstdc++

i think happening because boost compiled using homebrew using libc++ , want use libstdc++. there ways make these 2 working ?

thank help,

stephane-lb


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -