Missing 'GST_API_EXPORT'
While trying to build gstreamer with MSVC or clang-cl
, I get this well error:
clang-cl ... gst.c
...
In file included from gst/gstplugin.h:29:
gst/gstobject.h(214,1): error: unknown type name 'GST_API_EXPORT'
GST_API
^
I see no GST_API_EXPORT
in gstconfig.h.in
. There is a GST_EXPORT
but it's not for MSVC/clang-cl (gcc + SunPro).
So shouldn't these be renamed:
-
GST_EXPORT
toGST_API_EXPORT
. -
GST_IMPORT
toGST_API_IMPORT
.
Since I fail to see how GST_API
should be set prior to compiling e.g. gst.c
.
I'd say issues like this is typical for GNU/MinGW centric projects. Blame this on
ld
's auto-export feature.