[MINC-users] redefinitions in volume_io/basic.h, multidim.h causing compilation errors on Windows

Rupert Brooks rupe.brooks at gmail.com
Mon Sep 22 07:56:09 EDT 2008


hi Michel,

Are you actually rebuilding the MINC library under windows?  As I'm
sure you know, I managed to build it natively under windows but with a
certain amout of pain.

It sounds like you got past this specific problem, but if others are
interested maybe its time to re-discuss building MINC on windows.  It
would be great to have the support integrated right in the source,
with minimal pain necessary.

So far, my experience was that to build it natively, i had to make
minor mods to hdf_convenience.c to adhere to ANSI c, standards
(variable declarations), and i forcibly removed the dll_exports and
built it statically.  I got minc2 and volume_io to build, and more
than half of the minc tools.  However, those that require flex/bison,
and the conversion build tree I was never successful with.

Of course, one can build it under cygwin, but this has the
disadvantage of requiring cygwin, and requiring anything else built
against it to also use cygwin.

Rupert

On Thu, Sep 18, 2008 at 6:23 AM, Audette, Michel
<Michel.Audette at medizin.uni-leipzig.de> wrote:
> Hi all,
>
>
>
> I'm seeing some Windows MS VC++ 2003 compilation errors related to enums in volume_io/basic.h and multidim.h .
>
>
>
> Please forgive the German, and go by the error code. This seems to be related to keywords that are redefined or reused in enums.
>
>
>
> G:\windows\srcMAF\maf\openMAF22\Libraries\MINC\include\volume_io\multidim.h(44): error C2365: 'DOUBLE': Erneute Definition; vorherige Definition war 'Typedef'
>
>        C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WTypes.h(387): Siehe Deklaration von 'DOUBLE'
>
>
>
> G:\windows\srcMAF\maf\openMAF22\Libraries\MINC\include\volume_io\basic.h(66): error C2143: Syntaxfehler: Es fehlt ';' vor 'constant'
>
> (this is related to the use of the word ERROR in an enum)
>
>
>
> Is there a release that deals with errors like this, or a workaround?
>
>
>
> Best wishes,
>
>
>
> Michel
>
>
>
> Michel Audette, Ph.D.
>
> Innovation Center Computer Assisted Surgery (ICCAS)
>
> Semmelweisstraße 14
>
> Leipzig, Germany
>
> Phone: ++49 (0) 341 / 97 - 1 20 13
>
> Fax: ++49 (0) 341 / 97 - 1 20 09
>
>
>
>
>
>
>
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www2.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>



-- 
--------------------------------------------------------------
Rupert Brooks



More information about the MINC-users mailing list