Problem with Boost 1.32.0 and the Borland free compiler

I get this message when using boost/regex (it may or may not occur with other boost libraries, I havn't checked): Warning W8097 H:\Libraries\boost_1_32_0\boost/config/auto_link.hpp 240: Not all options can be restored at this time "Fatal F1004 test.cpp 15: Internal compiler error at 0x40638d with base 0x400000 in function main(int,char * *)". On line 240 (or thereabouts) of boost/config/auto_link.hpp (Boost version 1.32.0). This: "#pragma defineonoption BOOST_BORLAND_DEBUG -v" causes an ICE with Borland's free compiler if the option -v is not already being used. I don't know if this is common or not, though I did find one other message stating the same problem: http://lists.boost.org/boost/2005/04/25188.php.

I get this message when using boost/regex (it may or may not occur with other boost libraries, I havn't checked):
Warning W8097 H:\Libraries\boost_1_32_0\boost/config/auto_link.hpp 240: Not all options can be restored at this time "Fatal F1004 test.cpp 15: Internal compiler error at 0x40638d with base 0x400000 in function main(int,char * *)".
On line 240 (or thereabouts) of boost/config/auto_link.hpp (Boost version 1.32.0). This: "#pragma defineonoption BOOST_BORLAND_DEBUG -v" causes an ICE with Borland's free compiler if the option -v is not already being used.
I can reproduce that, but don't know what to do about it: it's a compiler bug after all, and it is fixed in Borland's latest compiler release (5.6.4). Can you upgrade your compiler by downloading C++ Builder X Personal Edition? Otherwise define BOOST_ALL_NO_LIB to disable automatic linking from your code, and manually specify which library files to link against: but be very careful you pick the right one!! John.

Do you think that line can be safely removed? Here is the description of the option (-v, I'm assuming it's a compiler option that's being turned on): "When the Debug Info In OBJs option is on, debugging information is included in your .OBJ files. The compiler passes this option to the linker so it can include the debugging information in the .EXE file. For debugging, this option treats C++ inline functions as normal functions. You need debugging information to use either the integrated debugger or the standalone Turbo Debugger." In any case, I'll see if I can update the compiler too. John Maddock wrote:
I get this message when using boost/regex (it may or may not occur with other boost libraries, I havn't checked):
Warning W8097 H:\Libraries\boost_1_32_0\boost/config/auto_link.hpp 240: Not all options can be restored at this time "Fatal F1004 test.cpp 15: Internal compiler error at 0x40638d with base 0x400000 in function main(int,char * *)".
On line 240 (or thereabouts) of boost/config/auto_link.hpp (Boost version 1.32.0). This: "#pragma defineonoption BOOST_BORLAND_DEBUG -v" causes an ICE with Borland's free compiler if the option -v is not already being used.
I can reproduce that, but don't know what to do about it: it's a compiler bug after all, and it is fixed in Borland's latest compiler release (5.6.4). Can you upgrade your compiler by downloading C++ Builder X Personal Edition?
Otherwise define BOOST_ALL_NO_LIB to disable automatic linking from your code, and manually specify which library files to link against: but be very careful you pick the right one!!
John.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Do you think that line can be safely removed? Here is the description of the option (-v, I'm assuming it's a compiler option that's being turned on):
Tested for bcb5 and yes it can be removed: I've added some #ifdef's around it so the compiler crash problem should go away in the next release (1.33). John.
participants (2)
-
John Maddock
-
Sean Childs