[plt-scheme] Problem with mzc

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Dec 2 16:11:37 EST 2002

At Mon, 2 Dec 2002 16:14:24 +0100, jblazi wrote:
> I have started playing with plt mzscheme. I should like to extend mzscheme 
> (and later mred) with a C++ file that uses a C++ library.
> Now when I compile and link the first "hello world" program from "Inside 
> MzScheme" it is compiled but not linked as __gc_personality_v0 is missing.
> 
> I called the file hw.cpp instead of hw.c.
> 
>  I have had this error before and it is a C++ problem. What can I do? I use 
> Cygwin (and gcc3.2).

Does adding 

   --linker g++

to your mzc command line fix the problem? (You might need to supply
a path for g++; I don't remember.)

Matthew



Posted on the users mailing list.