[XviD-devel] undefined MAX in plugin_lumimask

Ivan Kalvachev ikalvachev at gmail.com
Thu May 4 17:49:48 CEST 2006


the MAX() is defined in global.h that is not included anywhere in
plugins/plugin_lumimask.c, leading to unresolved symbol at link time.
The following trivial patch works for me. (your maillist always eats
my attachments;)

--- cvs/xvidcore/src/plugins/plugin_lumimasking.c   2006-05-
01 12:21:16.000000000 +0300
+++ build/xvidcore/src/plugins/plugin_lumimasking.c        2006-05-04
18:37:45.000000000 +0300
@@ -27,6 +27,7 @@
 #include <stdlib.h>

 #include "../xvid.h"
+#include "../global.h"
 #include "../portab.h"
 #include "../utils/emms.h"

If you like you can include ../image/image.h that among other things
includes the global.h or define MAX localy.

Wish You Best
  Ivan Kalvachev
 iive


More information about the XviD-devel mailing list