xunzheng/notears

Deprecated dependent package

yeqiaoling opened this issue · 2 comments

Hi Xun,

This is Qiaoling. I'm using notears module! While installing cppext by command 'python setup.py install', I occurred the following problem:

warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1

I attached the image of error at the end. Do you happen to know how to solve it in order to full the full version of notears?

Thanks!
Qiaoling

Screen Shot 2019-07-30 at 9 20 28 PM

Hi Qiaoling,

Thanks for posting. I haven't experienced this error before but looks like there is a related issue here. Could you try solutions suggested there and let me know if it worked?

Great! Add 'xtra_link_args=["-stdlib=libc++"]' worked. I can now use the NOTEARS.