Re: [Gegl-developer] babl compilation fails on win32 with mingw: babl-palette.c:93:23: error: 'INT_MAX' undeclared



As a general warning, compiling on plain mingw is not supported for
babl/gegl/gimp. Use mingw64 instead; if it doesn't fix this, it will
at least fix several other bugs.

Also note that because gegl and babl are still somewhat buggy, there
have been a ton of bugfixes in the git versions. I would try compiling
the latest git version too, and see if that fixes the issue.

Those are just general pointers. If you try that and still get issues,
then post back here for more help.

  -- drawoc

On Tue, Mar 19, 2013 at 11:45 AM, ChristophK <christoph kobenetz de> wrote:
Hello,

I'm trying to compile babl-0.1.10 on windows using mingw and get the
following error:

babl-palette.c:93:23: error: 'INT_MAX' undeclared

--Full Output--
$ mingw32-make
C:/MinGW/bin/mingw32-make  all-recursive
mingw32-make[1]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10'
Making all in babl
mingw32-make[2]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl'
Making all in base
mingw32-make[3]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl/base'
mingw32-make[3]: Nothing to be done for `all'.
mingw32-make[3]: Leaving directory
`k:/daten/programmierung/libraries/babl-0.1.1 0/babl/base'
mingw32-make[3]: Entering directory
`k:/daten/programmierung/libraries/babl-0.1. 10/babl'
  CC     babl-palette.lo
babl-palette.c: In function 'babl_palette_lookup':
babl-palette.c:93:23: error: 'INT_MAX' undeclared (first use in this
function) babl-palette.c:93:23: note: each undeclared identifier is
reported only once for each function it appears in
mingw32-make[3]: *** [babl-palette.lo] Error 1
----


As far as I can see, INT_MAX is not being declared. I didn't find any
MAXINT either:

----
$ grep -R INT_MAX *
ChangeLog:    palette: use INT_MAX instead of MAXINT
babl/babl-palette.c:      int best_diff = INT_MAX;

$ grep -R MAXINT *
ChangeLog:    palette: use INT_MAX instead of MAXINT

$
----


Please help
Christoph
_______________________________________________
gegl-developer-list mailing list
gegl-developer-list gnome org
https://mail.gnome.org/mailman/listinfo/gegl-developer-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]