[gst-devel] compilation with MinGW: undefined reference to `_imp__*'

Michal Benes michal.benes at itonis.tv
Tue Jan 2 11:34:17 CET 2007


Hi,

	I think that the problem is in gst/gstinfo.h

/**
 * GST_DEBUG_CATEGORY_EXTERN:
 * @cat: the category
 *
 * Declares a GstDebugCategory variable as extern. Use in header files.
 * This macro expands to nothing if debugging is disabled.
 */
#ifndef WIN32
#define GST_DEBUG_CATEGORY_EXTERN(cat) extern GstDebugCategory *cat
#else
#define GST_DEBUG_CATEGORY_EXTERN(cat) \
  extern _declspec (dllimport) GstDebugCategory *cat;
#endif

This ifdef will work with Microsoft compiler but not mingw. 

try
#if !defined(WIN32) || defined(__MINGW32__)

and if this works, fill a bug in bugzilla (if you do not have an account
there and do not want to create one, let me know, I will do that)

There are several people working on Windows port of GStreamer, but it
seems that the effort is not much coordinated, at least there is no
comprehensive HOWTO for newcomers. We still need somebody to do that ;-)

	Michal

Vincent Torri píše v Út 02. 01. 2007 v 00:12 +0100:
> Hey
> 
> I'm trying to compile gstreamer with msys/mingw. There are errors during 
> linking:
> 
> undefined reference to `_imp__GST_CAT_GST_INIT'
> 
> and a lot of similar errors.
> 
> I've found that web page, which talks about the problem:
> 
> http://www.haible.de/bruno/woe32dll.html
> 
> I don't know if that can help you in finding what the problem is (with 
> libtool ?)
> 
> thank you
> 
> Vincent
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list