Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2004-01-21 07:09:36


> There is another problem with release builds with Borland in filesystem
> (won't compile). Original message below again.
>
> Another, easier fix as pointed out in the actual thread, is to remove
> the std:: and put using namespace std; at the top of the file (it is a
> .cpp, not a .h), then Borland and others will find strcmp.

Thanks, for pointing that one out again - I can reproduce that from the IDE
in release mode, but interestingly the release libs built from the bjam
command line build OK, I'm not sure what the difference is here.

There is also an even less intrusive fix: which is to just #undef strcmp for
that compiler (patch below):

John.

$ cvs diff -b -u
johnmaddock_at_[hidden]'s password:
? operations_posix_windows.~cpp
cvs diff: Diffing .
Index: operations_posix_windows.cpp
===================================================================
RCS file:
/cvsroot/boost/boost/libs/filesystem/src/operations_posix_windows.cpp,
v
retrieving revision 1.26
diff -b -u -r1.26 operations_posix_windows.cpp
--- operations_posix_windows.cpp 13 Jan 2004 22:27:26 -0000 1.26
+++ operations_posix_windows.cpp 21 Jan 2004 12:06:42 -0000
@@ -48,6 +48,9 @@
 # if defined(__BORLANDC__) || defined(__MWERKS__)
 # if defined(__BORLANDC__)
         using std::time_t;
+# ifdef strcmp
+# undef strcmp
+# endif
 # endif
 # include "utime.h"
 # else


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk