in reply to ExtUtils::XSpp usage for a novice

A tutorial would be nice. Here is what I've done.

h2xs -A -n Bitcoin::Address added #include <bitcoin/address.hpp> to Address.xs building the project blows up spectacularly, cc can't handle hpp files.

Running xspp does nothing, there are no files for it to work with.

We are cpp novices, but proficient in c and xs.

Replies are listed 'Best First'.
Re^2: ExtUtils::XSpp usage for a novice
by Anonymous Monk on Feb 27, 2015 at 09:57 UTC
    And then what happend?

      What part of "blows up spectacularly" are you having trouble with?

      cc can't parse headers meant to be pares by cpp, it's plain wrong to even try. Knowing that I've the wrong tutorial(for C using h2xs) is only half the battle.

      We are asking for the XSpp tutorial for novice, given that there is no hpp2xs. Looking for a fill in the blanks boilerplate, the example with animals and dogs is too beefed up. It's not explained what can and can't be purged or what to do to get started with your own project. One note is that it does not interface with any library.


        Q: I tried stuff and it didn't work
        Q: And then what happened?
        A: What part of "blows up spectacularly" are you having trouble with?

        Yes, you tried something, it didn't work ... so what happened next?

        Why do you keep saying "we"?

        xspp