[Insight-users] Borland 6 Build error

John Biddiscombe John Biddiscombe" <jbiddiscombe@skippingmouse.co.uk
Mon, 25 Nov 2002 16:31:21 -0000


Luis,

> It is a bit suspect that Borland 6 is proving to be
> less supportive of templates than the 5.5 version.

Don't be surprised. Borland has a very good reputation for producing
compilers that are broken. I believe they're perfectly capable of taking a
working (nearly) product and making it far worse.

They released a patch for Builder6 that made it much worse, by introducing
new linker errors etc.

> I'm wondering if we may be dealing with a missing
> compiler option for compatability...

AFAIK no compiler flags/options were introduced with 6. I'll double check
this.

I managed to get a bit further, but fell upon this next batch of errors.
(Actually, there are tons more, but I'm working my way package by
package...). I'll look into them as and when I get time.

When you're fed up with this just say so and I'll give up. There's no point
changing everything just to support one compiler.

JB
D:\Insight\Code\Algorithms\itkWatershedEquivalencyTable.cxx:
Error E2410 D:\Insight\Code\Common\itk_hashtable.h 441: Missing template
paramet
ers for friend template 'bool(const
hashtable<Value,Key,HashFcn,ExtractKey,Equal
Key,Alloc> &,const hashtable<Value,Key,HashFcn,ExtractKey,EqualKey,Alloc>
&)'
Error E2238 D:\Insight\Code\Common\itk_hashtable.h 1042: Multiple
declaration fo
r 'identity<T>'
Error E2344 C:\Program Files\Borland\CBuilder6\Include\stl/_function.h 270:
Earl
ier declaration of 'identity<T>'
Error E2238 D:\Insight\Code\Common\itk_hashtable.h 1065: Multiple
declaration fo
r 'select1st<_Pair>'
Error E2344 C:\Program Files\Borland\CBuilder6\Include\stl/_function.h 272:
Earl
ier declaration of 'select1st<_Pair>'
Error E2238 D:\Insight\Code\Common\itk_hashtable.h 1066: Multiple
declaration fo
r 'select2nd<_Pair>'
Error E2344 C:\Program Files\Borland\CBuilder6\Include\stl/_function.h 273:
Earl
ier declaration of 'select2nd<_Pair>'
Error E2316 D:\Insight\Code\Common\itk_hashtable.h 693: '==' is not a member
of
'_STL::istream_iterator<_Tp,_CharT,_Traits,_Dist>'
Error E2450 D:\Insight\Code\Common\itk_hash_map.h 125: Undefined structure
'hash
table<_STL::pair<const unsigned long,unsigned long>,unsigned
long,hash<unsigned
long>,_STL::select1st<_STL::pair<const unsigned long,unsigned long>
>,_STL::equa
l_to<unsigned long>,_STL::allocator<char> >'
Error E2450 D:\Insight\Code\Algorithms\itkWatershedEquivalencyTable.h 135:
Undef
ined structure 'hash_map<unsigned long,unsigned long,hash<unsigned
long>,_STL::e
qual_to<unsigned long>,_STL::allocator<char> >'
Error E2449 D:\Insight\Code\Algorithms\itkWatershedEquivalencyTable.h 135:
Size
of 'm_HashMap' is unknown or zero
Error E2450 D:\Insight\Code\Algorithms\itkWatershedEquivalencyTable.h 135:
Undef
ined structure 'hash_map<unsigned long,unsigned long,hash<unsigned
long>,_STL::e
qual_to<unsigned long>,_STL::allocator<char> >'
*** 12 errors in Compile ***