After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 794296 - Using GST_PLUGIN_STATIC_DECLARE in c++ code
Using GST_PLUGIN_STATIC_DECLARE in c++ code
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
unspecified
Other All
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-03-13 16:12 UTC by Sylvain Chevalier
Modified: 2018-11-03 12:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sylvain Chevalier 2018-03-13 16:12:37 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?
Comment 1 Sebastian Dröge (slomo) 2018-03-13 21:03:40 UTC
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.
Comment 2 GStreamer system administrator 2018-11-03 12:45:09 UTC
-- 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.