Re: Gtk::Module
- From: Alexander Volosatov <rope-walker yandex ru>
- To: gtkmm-list gnome org
- Subject: Re: Gtk::Module
- Date: Fri, 3 Mar 2006 22:46:28 +0200
Hello, Max.
You wrote 3 марта 2006 г., 21:28:41:
>>>>>> "Alexander" == Alexander Volosatov
>>>>>> <rope-walker yandex ru> writes:
>>>> Try this: Glib::Module module("libfsdyn.dll");
>>>> if (module) { void (*function)(void); cout << "Module found\n";
>>>> module.get_symbol("func1", function); (*function)();
>>>> }
>>>> Bob
>>> It doesn't work.
Alexander>> Code of lib:
Alexander>> #include <iostream>
Alexander>> void func1() { std::cout << "dll func\n";
Alexander>> }
Alexander>> WHY FUNCTION IS NOT FOUND????
> C++ compiler mangles function names thus you have to use C linkage for
> functions your library exports:
> extern "C" void func1() { bla-bla-bla }
Thanks for averybody how helped me with this problem!!!!
--
С уважением,
Alexander mailto:rope-walker yandex ru
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]