GNOME Bugzilla – Bug 325653
build errors compiling audioresample on win32(vs7)
Last modified: 2006-04-11 13:56:36 UTC
rint() function is not defined in windows headers. Unresolved external error. 1. debug.h: Microsoft compiler doesn't like ... in macroses and doesn't know what is __VA_ARGS__. #define RESAMPLE_ERROR(...) GST_ERROR(__VA_ARGS__) #define RESAMPLE_WARNING(...) GST_WARNING(__VA_ARGS__) #define RESAMPLE_INFO(...) GST_INFO(__VA_ARGS__) #define RESAMPLE_DEBUG(...) GST_DEBUG(__VA_ARGS__) #define RESAMPLE_LOG(...) GST_LOG(__VA_ARGS__) 2. debug.c: a) please replace #include <debug.h> with #include "debug.h" b) static int resample_debug_level = RESAMPLE_LEVEL_ERROR; RESAMPLE_LEVEL_ERROR - is undeclared identifier (it is hidden by #if 0 macro in debug.h) c) void resample_debug_set_level (int level) { resample_debug_level = level; } sintax error - because resample_debug_set_level is redefined as do { } while (0) in debug.h 3. resample.c liboil/liboil.h is referenced here but not used.
(1) is a similar problem to bug #320765 btw.
If I understand correctly, this has been resolved now. Please re-open if there are still issues. 2006-04-09 Sebastien Moutte <sebastien@moutte.net> * gst/audioresample/debug.h: replace debug macros with variable number of parameters by a simple alias to gstreamer standard debug macros (#define RESAMPLE_ERROR GST_ERROR, __VA_ARGS__ is not supported by MSVC 6.0 and 7.1) * gst/audioresample/resample.h: define M_PI and rint for WIN32 * win32/common/libgstaudio.def: * win32/common/libgstriff.def: * win32/common/libgsttag.def: * win32/common/libgstvideo.def: add new exported functions * win32/vs6: update project files