Problem compiling with CodeGear Borland 2007
Dear Boost users: I have been successful in using boost under gcc 4.3. (running Linux FC9). I wanted to try compiling under Windows environment - Borland C++ 2007. A simple program using "boost/numerics/ublas/vector.hpp" will not compile. I got errors like: [BCC32 Error] is_reference.hpp(46) E2135 Reference cannot be declared 'const' or 'volatile' etc. I have looked at the header file "is_reference.hpp" to see if I could make something out of the line 46. It turns to be a "workaround" for BORLAND compiler. There is a comment to the effect "theses are illegal specializations: cv-qualifies applied to references have no effect according to [8.3.2p1], C++ Builder requires them though it treats cv-qualified reference as distinct types ..." I would like to know if any has been successful in using Borland compiler with boost library based codes. Regards, Philip Ogunbona
In article <49217D30.8050202@bigpond.net.au>,
Philip Ogunbona
[BCC32 Error] is_reference.hpp(46) E2135 Reference cannot be declared 'const' or 'volatile'
Yes, this message comes from a workaround that isn't needed any more. I'm not sure why this hasn't been patched yet. There may be other problems with that library. I'd have to dig deeper. I haven't had much time to investigate errors lately, but I do have the regression tests running on a regular basis now. -- -David
Philip Ogunbona
I have looked at the header file "is_reference.hpp" to see if I could make something out of the line 46. It turns to be a "workaround" for BORLAND compiler. There is a comment to the effect "theses are illegal specializations: cv-qualifies applied to references have no effect according to [8.3.2p1], C++ Builder requires them though it treats cv-qualified reference as distinct types ..."
I'm not sure whether you stand any chance of compiling uBlas with CB2007, but if I remember correctly that specific workaround should not be necessary with CB2007 and CB2009 so you might try and change the macros that control it so that it is only used when __BORLANDC__ is less than 0x593
I would like to know if any has been successful in using Borland compiler with boost library based codes.
Borland/CodeGear customers wishing to use Boost in their code tend to find the following useful: http://bcbboost.sourceforge.net/ http://wthwdik.wordpress.com/category/c-builder/ Cheers, Nicola Musatti
participants (3)
-
Nicola Musatti
-
Philip Ogunbona
-
siliconman