[Bug 764523] New: -lole32 is missing for libgstdirectsoundsrc
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Sun Apr 3 09:33:03 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=764523
Bug ID: 764523
Summary: -lole32 is missing for libgstdirectsoundsrc
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-plugins-bad
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: kou at cozmixng.org
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 325255
--> https://bugzilla.gnome.org/attachment.cgi?id=325255&action=edit
Fix the problem
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=f9464ce3549c2b3948a582464631ba4f8dd0d5e7
uses CLSIDFromString().
To use CLSIDFromString(), we need to link against ole32.dll: See "DLL" in
https://msdn.microsoft.com/en-us/library/windows/desktop/ms680589%28v=vs.85%29.aspx
But the commit doesn't add "-lole32" to linker flags. It causes link error.
I'm sorry but I didn't record the error. Here are steps to reproduce the same
error:
1. Create a test program that uses CLSIDFromString:
#include <windows.h>
int
main(void)
{
LPCOLESTR string = NULL;
CLSID id;
CLSIDFromString(string, &id);
return 0;
}
2. Build with MinGW:
% x86_64-w64-mingw32-gcc a.c
/tmp/ccj5AFMG.o:a.c:(.text+0x23): undefined reference to
`__imp_CLSIDFromString'
collect2: error: ld returned 1 exit status
%
3. Add -lole32 flag
% x86_64-w64-mingw32-gcc a.c -lole32
%
(no error)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list