[gst-devel] linking problem when compiling with msys/mingw

Vincent Torri vtorri at univ-evry.fr
Fri Aug 18 18:13:44 CEST 2006


Maybe the web pages:

http://msdn2.microsoft.com/en-us/library/y4h7bcy6.aspx
and
http://www.mingw.org/docs.shtml

can be of some help (i'm not a win32 expert too)

It seems that when we want to build a DLL, we should use 
__declspec(dllexport)

any ideas of what should be used ?

Vincent

On Fri, 18 Aug 2006, Alberto Botti wrote:

> Il giorno lun, 14/08/2006 alle 20.05 +1000, James "Doc" Livingston ha
> scritto:
>> On Tue, 2006-08-08 at 17:24 +0200, Vincent Torri wrote:
>>> Then, I have those undefined references:
>>>
>>>   undefined reference to `_imp__GST_CAT_CAPS'
>>> or
>>> undefined reference to `_imp__GST_CAT_REFCOUNTING'
>>
>> I got a heap of those last time I tried building GStreamer on Windows,
>> and hadn't managed to solve it, although I haven't tried in a few weeks.
>> I think there was discussion about official Win32 packages a while ago,
>> but I'm not sure what happened there.
>
> As a workaround: in gst/gst_private.h, at line 55, change
>
> #define IMPORT_SYMBOL __declspec(dllimport)
>
> into
>
> #define IMPORT_SYMBOL
>
>
> I've got gstreamer-0.10.9 to build with this hack, and it seems to work,
> at least for the simple pipelines I've tried. I don't know exactly the
> reason for the build failure (I'm not a Win32 expert), but "__declspec"
> might not be needed for MinGW.
>
> Note: this change might break the Visual C++ build...
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> -- 
> Ce message a été vérifié par MailScanner
> pour des virus ou des polluriels et rien de
> suspect n'a été trouvé.
> Message délivré par le serveur de messagerie de l'Université d'Evry.
>
>


More information about the gstreamer-devel mailing list