From: Nobuyoshi Nakada Date: 2007-10-27T08:40:14+09:00 Subject: Re: Building an extension in C++ Hi, At Sat, 27 Oct 2007 06:25:00 +0900, Gary wrote in [ruby-talk:276038]: > Although when I look at the Makefile it has the following line: > > CC = gcc mkmf.rb in 1.8 doesn't support C++. Perhaps make has default macro CXX and a rule for C++. But C++ runtime library isn't linked by default using gcc, you'll need to add the library in extconf.rb explicitly, like as: have_library("stdc++") -- Nobu Nakada