GNOME Bugzilla – Bug 392473
[PATCH] Undefined references while building with MinGW
Last modified: 2007-01-03 22:36:52 UTC
I'm trying to build GStreamer under Windows XP using MinGW. The build process works for the most part but stops with many undefined references while linking, such as undefined reference to `_imp__GST_CAT_GST_INIT' These values are part of the debug subsystem of GStreamer, and are defined in gst_private.h and gstinfo.h. There are existing preprocessor checks that enable "__declspec(dllimport)" unconditionally for every build under Win32, but they don't seem to be necessary with MinGW. The attached patch disables that #define when building with MinGW, and fixes the build. It has also been tested under Linux and doesn't show regressions.
Created attachment 79317 [details] [review] Checks for MinGW
*** This bug has been marked as a duplicate of 391909 ***