Re: [Geany-devel] Geany Newsletter Issue #5

2012-05-28 Thread Lex Trotman
Hi Thomas, Humm, dunno why it didn't work when Matthew and I tried it before, but: $ cat test.cpp #include #include extern "C" { PLUGIN_VERSION_CHECK(211) PLUGIN_SET_INFO("Test C++","Test C++", "etc", "etc"); void plugin_init(GeanyData *){} void plugin_cleanup(void){} } class Te

Re: [Geany-devel] Geany Newsletter Issue #5

2012-05-28 Thread Matthew Brush
On 12-05-28 02:24 PM, Thomas Martitz wrote: Am 28.05.2012 13:27, schrieb Lex Trotman: This doesn't actually call the C++ constructors/destructors in the way they would be in normally be if the plugin had been statically linked. This simply labels a C function to be called at dlopen time. It ma

Re: [Geany-devel] Geany Newsletter Issue #5

2012-05-28 Thread Thomas Martitz
Am 28.05.2012 13:27, schrieb Lex Trotman: This doesn't actually call the C++ constructors/destructors in the way they would be in normally be if the plugin had been statically linked. This simply labels a C function to be called at dlopen time. It may be used to do some initialisation, but you

Re: [Geany-devel] Geany Newsletter Issue #5

2012-05-28 Thread Frank Lanitz
Am 28.05.2012 13:27, schrieb Lex Trotman: > On 28 May 2012 19:59, Thomas Martitz > wrote: >> Am 28.05.2012 11:27, schrieb Frank Lanitz: >>> >>> It's important to note that the dynamic library loading mechanism >>> that loads plugins is C functionality and does not know about C++ >>> constructors.

Re: [Geany-devel] Geany Newsletter Issue #5

2012-05-28 Thread Lex Trotman
On 28 May 2012 19:59, Thomas Martitz wrote: > Am 28.05.2012 11:27, schrieb Frank Lanitz: >> >> It's important to note that the dynamic library loading mechanism >> that loads plugins is C functionality and does not know about C++ >> constructors. This means that global and static objects in the >>

Re: [Geany-devel] Geany Newsletter Issue #5

2012-05-28 Thread Thomas Martitz
Am 28.05.2012 11:27, schrieb Frank Lanitz: It's important to note that the dynamic library loading mechanism that loads plugins is C functionality and does not know about C++ constructors. This means that global and static objects in the plugin will *not* have their constructors called when the p

[Geany-devel] Geany Newsletter Issue #5

2012-05-28 Thread Frank Lanitz
Geany Newsletter #5 --- 1 About Geany 2 New translations and updates 3 Wiki available 4 C++ plugins supported 5 Plugins 5.1 New Plugins 5.1.1 GeanyPyflakes 5.1.2 GeniusPaste 5.2 GeanyPG 6 Geany local 7 Geany Packages for Fedora