This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dlopen ? is it possible to use with stdc++


On 17 Oct 2000 at 16:47 (+0200), Levente Farkas wrote:
| hi,
| I'm try to use a simple shared library:
| ---------------------------
| #include <iostream>

// as Gaby noted, your test1 has c++ linkage, fix it
// with this declaration. I've played quite a bit with
// various useful ways to get c++ objects from dlopened
// files. If you'd like more info, feel free to email
// me directly.
extern "C" {
  void test1();
}

| void test1()
| {
|   cout << "test1";
| }

-- 
All opinions expressed are My own, unless otherwise attributed. In
presenting facts, I expressly reserve the right to be Wrong. Portions
of this message authored by Me are subject to the Free Thought License.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]