----- Original Message ----- From: "Rozental, Gennadiy" <[EMAIL PROTECTED]> To: "'Boost mailing list'" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 3:01 PM Subject: RE: [boost] Factoring out Test Library wrapstrstream
> > The problem is that BCC, by default, uses an 'intrinsic' > > version of strcmp > > which is not a real function thus it is not located in std. > > Declaring strcmp > > inside std doesn't help. > > The workaround is to either use unqualified calls to strcmp > > or to disable > > its intrinsic version. My patch does the latter. > > Why don't I have any problems compiling using borland command line tools? > Borland's intrinsic functions are enabled when the option 'Fastest Possible Code optimization' is used. This corresponds to the -O2 command line switch. The alternative optimization, "Smallest Possible Code', which corresponds to the -O1 switch, doesn't set intrinsic on. My guess is that the jamtools for Borland uses -O1 instead of -O2. The problem is that when you build the test by hand you don't know that you must use -O1 instead of -O2. I think it is better to use the pragma to turn it off than to require users to use -O1. Fernando Cacciola _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost