FFI & C++

Niklas Sörensson nik@cs.chalmers.se
Wed, 30 Oct 2002 17:42:11 +0100 (MET)


On 30 Oct 2002, Seth Kurtzberg wrote:

> What is the O/S and compiler?  That the C++ new operator is not found is
> very strange.  Throw is another story, as throw doesn't appear in the
> compiled code with some compilers.

We run Solaris + gcc 2.95.3. The exact error message looks like this:


Prelude> :set -package satnik
Loading package satnik ... linking ...
/.../chalmers.se/fs/cab/cs/work/proj/formal-methods/home/src/fm/HSatnik/Satnik.o:
unknown symbol `__builtin_new'
ghc-5.04.1: panic! (the `impossible' happened, GHC version 5.04.1):
        can't load package `satnik'

Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.

... which to me seems like it cannot find new.

/Niklas