This error was encountered while compiling Libpandoc with cabal:
Hshslua-0.3.12.o:unknown symbol ' ___s trtod '
ghc.exe:unable to load package ' hslua-0.3.12 '
Stuck in this place for a long time, and then found a workaround on the StackOverflow--linking Error Using Hslua on Windows:
If OS (Windows)
Cc-options: "-d__no_isocext"
To resolve the operation steps:
1. Check out the source code of Hslua from GitHub
git clone https://github.com/osa1/hslua.git
2. Add the following settings in the Hslua.cabal file:
If OS (Windows)
Cc-options: "-d__no_isocext"
3. Configure, compile, and reinstall Hslua
Cabal Configure--user
Cabal Build
Cabal Install--force-reinstalls
4. Configure, compile, and reinstall Pandoc
5. Configure and compile Libpandoc. So compile success, problem solving!
Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/extra/