Solving the problem of hslua unknown symbol ' ___s trtod ' in Haskell

Source: Internet
Author: User
Tags git clone

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.