[Insight-users] Compiling errors

Luis Ibanez luis.ibanez@kitware.com
Thu, 31 Oct 2002 11:48:11 -0500


Hi Marco,

The Beta2 version is a bit old now (June 02).
Many changes have been done in order to
support .NET, Borland and Mac.

You may want to try the new 1.0 release.

Tarballs are available now from

      http://www.itk.org/


Please follow the document describing
the easy start on:


  Insight/Documentation/InsightStart.pdf


Please let us know if you find any problem,

Thanks


    Luis


=====================================


Mdl wrote:
> Hi everybody,
> 
> I'm a total newbie about Itk, and I didn't manage to get it compiled
> properly yet.
> I downloaded the Beta2 sources for Windows, but when I try to compile the
> Cmake-generated projects (I use Visual C++ .NET), I get seven or eight times
> a strange error:
> 
> 
> e:\Dev\Itk\InsightBeta2\Code\Common\itk_alloc.h(40) : error C2660:
> 'std::allocator::allocate' : function does not take 2 parameters
>         e:\Dev\Itk\InsightBeta2\Code\Common\itk_alloc.h(40) : while
> compiling class-template member function 'itk_simple_alloc::value_type
> *itk_simple_alloc::allocate(void)'
>         with
>         [
>             T=itk::hashtable_base,std::allocator>::node,
>             Alloc=std::allocator
>         ]
>         e:\Dev\Itk\InsightBeta2\Code\Common\itk_hashtable.h(296) : see
> reference to class template instantiation 'itk_simple_alloc' being compiled
>         with
>         [
>             T=itk::hashtable_base,std::allocator>::node,
>             Alloc=std::allocator
>         ]
>         e:\Dev\Itk\InsightBeta2\Code\Common\itk_hashtable.h(295) : while
> compiling class-template member function 'itk::hashtable_base::node
> *itk::hashtable_base::new_node(const itk::hashtable_base::value_type &)'
>         with
>         [
>             Value=std::pair,
>             Alloc=std::allocator
>         ]
>         e:\Dev\Itk\InsightBeta2\Code\Common\itk_hashtable.h(332) : see
> reference to class template instantiation 'itk::hashtable_base' being
> compiled
>         with
>         [
>             Value=std::pair,
>             Alloc=std::allocator
>         ]
> 
> 
> 
> 
> The odd thing is that just two lines above the line (40), there is (more or
> less) the same code but it doesn't produce any error!
> Here is it (from itk_alloc.h):
> 
> (37) static value_type *allocate(size_t n)
> (38) { return 0 == n? 0 : (value_type*) alloc_type().allocate(n * chunk,
> 0); }
> (39) static value_type *allocate(void)
> (40) { return (value_type*) alloc_type().allocate(chunk, 0); }
> 
> Any help will be much appreciated!
> Thank you in advance,
> Marco
> 
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
> 
>