From: Gary Date: 2007-10-28T21:50:09+09:00 Subject: Re: Building an extension in C++ Thank you Nobu!!! Your a genius! This cleared up the last of my problems! Wheee!!!! -Gar On Oct 26, 4:40 pm, Nobuyoshi Nakada wrote: > 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