Opened 19 years ago

Closed 18 years ago

#239 closed Bugs (None)

uBLAS on Borland C++ 5.5.1 - 9 compile errors

Reported by: vlavrinenko Owned by: nobody
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

Compiling the test program provided in 
boost_1_31_0/libs/numeric/ublas/doc/matrix.htm with 
bcc32 5.5.1 
gives the following output:

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 
Borland
test.cpp:
Error E2479 c:\bcc55\include\algorith.h 97: Cannot have 
both a template class and function named 'find'
Error E2479 c:\bcc55\include\algorith.cc 71: Cannot have 
both a template class and function named 'find'
Error E2479 c:\bcc55\include\complex.h 1158: Cannot 
have both a template class and function named 'arg'
Error E2401 C:
\BCC55\boost\include\boost-1_31\boost/numeric/ublas/tr
aits.hpp 1011: Invalid template argument list
Error E2040 C:
\BCC55\boost\include\boost-1_31\boost/numeric/ublas/tr
aits.hpp 1012: Declaration terminated incorrectly
Error E2479 C:
\BCC55\boost\include\boost-1_31\boost/numeric/ublas/ra
w.hpp 25: Cannot have both a template class and 
function named 'size'
Error E2479 C:
\BCC55\boost\include\boost-1_31\boost/numeric/ublas/ra
w.hpp 29: Cannot have both a template class and 
function named 'size'
Error E2479 C:
\BCC55\boost\include\boost-1_31\boost/numeric/ublas/ra
w.hpp 428: Cannot have both a template class and 
function named 'size'
Error E2479 C:
\BCC55\boost\include\boost-1_31\boost/numeric/ublas/ra
w.hpp 434: Cannot have both a template class and 
function named 'size'


I've managed it by making some changes in the .hpp files 
(changed files are attached here in a zip archive, the 
lines I've added are 
marked with //LVU). And now the matrix test programs 
run perfectly. Unfortunately, I've failed to build regression 
test suite and cannot tell the test results.

Change History (2)

comment:1 by mistevens, 19 years ago

Logged In: YES 
user_id=556024

uBLAS development was working on the assumption that BCC 
is sufficiently broken as to be a hopeless cause. 
Would it be possible to resubmit to ublas-dev (on SF). Of 
course a working patch against the ublas-dev CVS would be 
helpful. 
 
Thanks 
 

comment:2 by mistevens, 18 years ago

Status: assignedclosed
Logged In: YES 
user_id=556024

Without further feedback from compiler owners uBLAS support 
for BCC has been dropped. 
Note: See TracTickets for help on using tickets.