
26 Jan
2015
26 Jan
'15
11:29 a.m.
Quoth Richard Lewis
There's a specific question here which goes something like: how do I get hsc2hs to compile code that uses STL headers?
From there, I would have guessed "extra-libraries: stdc++" would do it, (assuming you have also arranged to get your wrapper library in there), but I'm no cabal expert. I use C++ more or less like you're doing, so
For me, that would be the first thing to fix. Use #ifdef __cplusplus, or just reorganize, so the hsc2hs-generated files are just C. You wrote your wrapper library for the C++ part, and if the callers need to be C++ it kind of defeats the purpose. there's hope, but I haven't gotten around to the cabal part of the exercise. Donn