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):
$ cvs diff -b -u
cvs diff: Diffing .
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__)
+# ifdef strcmp
+# undef strcmp
# include "utime.h"
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk