double-conversion icon indicating copy to clipboard operation
double-conversion copied to clipboard

Make it possible to link against system version of the library

Open niteria opened this issue 7 years ago • 2 comments

double-conversion Haskell package copies the double-conversion C library into its source tree. This works well enough for most use cases, but problems begin when you want to link your program with some other C library that depends on system installed double-conversion C library.

You end up with duplicate symbol definition errors like this:

double_conversion/lib/libdouble-conversion.a(double-conversion.o): multiple definition of 'double_conversion::DoubleToStringConverter::HandleSpecialValues(double, double_conversion::StringBuilder*) const'

niteria avatar Jun 23 '17 13:06 niteria

This is a problem for me as well.

enzoh avatar Dec 07 '17 19:12 enzoh

I implemented a workaround for SpiderMonkey: https://github.com/dfinity/hs-double-conversion

enzoh avatar Dec 07 '17 23:12 enzoh