From: Luigi B. <lui...@gm...> - 2023-01-12 09:55:00
|
Ok, please let me know how it goes. Luigi On Thu, Jan 12, 2023 at 10:34 AM Andreas Lindh <and...@ca...> wrote: > Hi Luigi! > > Apparently my code demands c++17, but this have not been an issue in the > past. The boost version that brew installs is > /usr/local/Cellar/boost/1.81.0 > > I decided to see if this works in 1.29 and ignore it until then. > > /Andreas > > ------------------------------ > *From:* Luigi Ballabio <lui...@gm...> > *Sent:* Wednesday, January 11, 2023 18:11 > *To:* Andreas Lindh <and...@ca...> > *Cc:* qua...@li... < > qua...@li...> > *Subject:* Re: [Quantlib-dev] Segmentation fault on 1.28 on MacOSX > > Ok -- may you try again with `-std=c++14` instead of `-std=c++1z`? The > idea would be to try to use the same compilation flags with which QuantLib > itself was compiled, to avoid discrepancies in the compiled interfaces. > Another discrepancy might be the version of boost; did you install it from > homebrew, too? > > Hope this helps, > Luigi > > > On Wed, Jan 11, 2023 at 5:45 PM Andreas Lindh <and...@ca...> > wrote: > > Hi Luigi! > > Seems like it is installed. > > ~ > /usr/local/Cellar/quantlib/1.28/bin/quantlib-config --libs --cflags > -L/usr/local/Cellar/quantlib/1.28/lib -lQuantLib > -I/usr/local/Cellar/quantlib/1.28/include -std=c++14 > > /Andreas > ------------------------------ > *From:* Luigi Ballabio <lui...@gm...> > *Sent:* Wednesday, January 11, 2023 17:39 > *To:* Andreas Lindh <and...@ca...> > *Cc:* qua...@li... < > qua...@li...> > *Subject:* Re: [Quantlib-dev] Segmentation fault on 1.28 on MacOSX > > Hello, > I had it working, but I had compiled it myself -- I didn't try the > version from homebrew. Does `brew install quantlib` also install a > `quantlib-config` executable? If so, may you run `quantlib-config --libs > --cflags` and see what it reports? > > Luigi > > > On Wed, Jan 11, 2023 at 5:05 PM Andreas Lindh <and...@ca...> > wrote: > > Apologise if this is not the correct forum. > > I was wondering is anyone else had issues with version 1.28 on MacOSX, or > got it to work? > > > brew install quantlib > > and > > g++ -Wall -g -std=c++1z -I/usr/local/include/ > -I/usr/local/include/boost -L/usr/local/lib/ \ > mycode.cpp -o mycode.exe -lQuantLib > > ./mycode.exe > gives segmentation fault with 1.28 on MacOSX, but works fine on Linux and > with WebAssembly. It worked fine with version 1.25 on MacOSX to. > > > I cannot get gdb to work on Mac, so have no further info. > > > /Andreas > > > _______________________________________________ > QuantLib-dev mailing list > Qua...@li... > https://lists.sourceforge.net/lists/listinfo/quantlib-dev > > |