Giter VIP home page Giter VIP logo

Comments (8)

andyarvanitis avatar andyarvanitis commented on July 23, 2024

For some libraries (including Prelude), you need to use the version from the pure14 org. See this list.

Also, there's a sample Makefile that you can use for the PureScript -> C++ compilation.

Sorry, there's not much helpful documentation yet, as I've spent most of my time so far just working on the compiler itself. I hope to do it soon, but let me know if you run into anything else.

from purescript-native.

andyarvanitis avatar andyarvanitis commented on July 23, 2024

Oh, sorry, I just saw your modified bower file that's already pointing to the pure14 versions.
I also see that you got to the cmake stage. Are you sure it's using the right package?

from purescript-native.

andyarvanitis avatar andyarvanitis commented on July 23, 2024

To clarify: please make sure the right version of prelude got pulled in by bower. I don't really use bower right now, I just pull things in directly via git. The right version will have a Prelude.hh file in the same directory as Prelude.js.

from purescript-native.

kasbah avatar kasbah commented on July 23, 2024

Thanks for taking a look. You were right, bower was checking out the 0.1.0 tag of prelude which didn't have the Prelude.hh. Fixed it. Not much of a bower user myself either.

I guess the only actual bug here is that pcc doesn't report an error on the second try.

What compiler do you recommend by the way? I am now running into some C++ compilation issues (using gcc 4.9.2).

from purescript-native.

andyarvanitis avatar andyarvanitis commented on July 23, 2024

Ok cool. Definitely a recent version of clang, meaning 3.5.x or 3.6.x. I think 3.4.2 might be ok too, but earlier than that wants -std=c++1y instead of -std=c++14 (I think it's fine other than that).

gcc 5.1 might also be ok, but I haven't tried it in a while, so something might not work anymore. If you try it and it does work, please let me know, though. I mostly work on a Mac, but with clang I've seen everything working fine on Linux and FreeBSD.

from purescript-native.

kasbah avatar kasbah commented on July 23, 2024

Clang 3.6.0 and gcc 5.1.0 are both working well for me for the hello world at least (I am on Ubuntu 14.04).

from purescript-native.

andyarvanitis avatar andyarvanitis commented on July 23, 2024

Great! In case you haven't seen it, this shows some of the things that are and are not currently working: https://github.com/andyarvanitis/pure14/blob/pure14-master/pcc/TestMain.hs

from purescript-native.

andyarvanitis avatar andyarvanitis commented on July 23, 2024

No longer applicable due to new approach.

from purescript-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.