On Aug 9, 2006, at 8:05 PM, Jonathan Johnson wrote:

Where are you defining FLAT_C_PLUGIN_HEADERS? It needs to be defined globally before any includes of rb_plugin.h or REALplugin.h.


In a prefix file, thus globally.

It appears that we need to remove rb_plugin.h:


#if FLAT_C_PLUGIN_HEADERS && defined( __cplusplus )
        extern "C" {
#endif


and:

#if FLAT_C_PLUGIN_HEADERS && defined(__cplusplus)
        }
#endif


to get it to work. Needless to say, the previous plugin sdk did not have extern"C" { }, bracketing the function declarations in rb_plugin.h, and we know that functions were overloaded in there. So something is not correct in the current plugin SDK, given that some developers would want to compile with FLAT_C_PLUGIN_HEADERS 0, (there is then no extern "C" defined) and overloaded functions just work fine. It is the addition of extern "C" that makes it not work!

Alfred
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to