From: nobu@... Date: 2006-06-16T23:05:41+09:00 Subject: Re: In an ruby c extension, How to link it with a shared library written in c++ Hi, At Fri, 16 Jun 2006 17:27:34 +0900, huiliang wu wrote in [ruby-talk:197613]: > But when I use have_library("foo", "say") in extconfig.rb, it fails. > Previously I compile libfoo.so in c, and it can find this library. A shared library created with C++ compiler would need also C++ runtime library to link. have_library doesn't support C++ directly yet. If you use g++, try have_library("stdc++") before "foo". -- Nobu Nakada