dlopen ? is it possible to use with stdc++

brent verner brent@rcfile.org
Tue Oct 17 12:04:00 GMT 2000


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.


More information about the Libstdc++ mailing list