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 392473 - [PATCH] Undefined references while building with MinGW
[PATCH] Undefined references while building with MinGW
Status: RESOLVED DUPLICATE of bug 391909
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.11
Other Windows
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-03 20:58 UTC by Alberto Botti
Modified: 2007-01-03 22:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Checks for MinGW (937 bytes, patch)
2007-01-03 20:59 UTC, Alberto Botti
none Details | Review

Description Alberto Botti 2007-01-03 20:58:23 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.
Comment 1 Alberto Botti 2007-01-03 20:59:36 UTC
Created attachment 79317 [details] [review]
Checks for MinGW
Comment 2 Alberto Botti 2007-01-03 21:04:51 UTC

*** This bug has been marked as a duplicate of 391909 ***