GNOME Bugzilla – Bug 794296
Using GST_PLUGIN_STATIC_DECLARE in c++ code
Last modified: 2018-11-03 12:45:09 UTC
The GST_PLUGIN_STATIC_DECLARE macro must be wrapped inside an extern "C" block when building in C++ as it resolved in a function declaration whose implementation is in C. As this is not obvious (at least it was not obvious to me), should it be documented, or maybe better yet, improved in the macro itself?
Is it valid to have nested extern "C" blocks, i.e. > extern "C" { > extern "C" { > ... > } > } This could happen if the macro conditionally adds the blocks.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/279.