openexr-devel
[Top][All Lists]
Advanced

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

[Openexr-devel] Mingw build failed: "duplicate case value"


From: natureh
Subject: [Openexr-devel] Mingw build failed: "duplicate case value"
Date: Wed, 26 Jun 2013 23:48:57 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

Hi,

I'm actually trying to evaluate the possibility to support OpenEXR in our open-source project. I'm trying to build ilmbase2.0.0 on Win7/64 through MinGW(+MSYS)+"gcc (tdm64-1) 4.6.1", but it failed with this error message:

Building CXX object Iex/CMakeFiles/Iex.dir/IexThrowErrnoExc.cpp.obj
C:\Users\Jean-Christophe\Developpement\Ressources\OpenEXR\ilmbase-2.0.0\Iex\IexThrowErrnoExc.cpp: In function 'void Iex::throwErrnoExc(const string&, int)':
C:\Users\Jean-Christophe\Developpement\Ressources\OpenEXR\ilmbase-2.0.0\Iex\IexThrowErrnoExc.cpp:423:4: error: duplicate case value
C:\Users\Jean-Christophe\Developpement\Ressources\OpenEXR\ilmbase-2.0.0\Iex\IexThrowErrnoExc.cpp:203:4: error: previously used here
Iex\CMakeFiles\Iex.dir\build.make:81: recipe for target `Iex/CMakeFiles/Iex.dir/IexThrowErrnoExc.cpp.obj' failed
mingw32-make[2]: *** [Iex/CMakeFiles/Iex.dir/IexThrowErrnoExc.cpp.obj] Error 1
CMakeFiles\Makefile2:202: recipe for target `Iex/CMakeFiles/Iex.dir/all' failed
mingw32-make[1]: *** [Iex/CMakeFiles/Iex.dir/all] Error 2
makefile:115: recipe for target `all' failed
mingw32-make: *** [all] Error 2
I've tried the CMake way, but it failed for the same reason with configure through MSYS.

When looking at IexThrowErrnoExc.cpp, i can see that there are 2 different 'case' : EOVERFLOW (l. 423) and EFBIG (l. 203), but can't find where they have been defined in the source tree!

I don't know if that's relevant, but exception handling doesn't seem to work on my system, is there a way to avoid using them?

Thanks for your help.

---
   Jean-Christophe
   aka Hombre


reply via email to

[Prev in Thread] Current Thread [Next in Thread]