[Clp] Compile error on AIX
Elwood, Dave
dave.elwood at osii.com
Mon Mar 6 14:59:19 EST 2017
Hi,
Compiling Clp/CoinUtils on AIX gives a compile error (using svn checkout of https://projects.coin-or.org/svn/Clp/stable/1.16 revision 2256<https://projects.coin-or.org/svn/Clp/stable/1.16%20revision%202256>).
For example:
xlc -c -DHAVE_CMATH -DHAVE_CFLOAT ClpCholeskyBase.cpp
Yields the error: CoinHelperFunctions.hpp", line 845.24: 1540-0130 (S) "std::tolower" is not declared.
This appears to be caused by the block:
#if defined(_MSC_VER)
# include <direct.h>
# include <cctype>
# define getcwd _getcwd
# include <cctype>
#else
# include <unistd.h>
#endif
Which doesn’t include header <cctype> when _MSC_VER isn’t defined.
Adding a # include <cctype> line to the #else block allows the code to compile successfully.
Thanks.
Dave
[cid:imagea919d4.GIF at b46e0f17.4a95bf88]
Dave Elwood
Power Systems Development
4101 Arrowhead Drive
Medina, Minnesota 55340-9457
Phone: 763 551 0559
Fax: 763 551 0750
Email: dave.elwood at osii.com<mailto:dave.elwood at osii.com>
Website: www.osii.com<http://www.osii.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/clp/attachments/20170306/2623f1e1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imagea919d4.GIF
Type: image/gif
Size: 6732 bytes
Desc: imagea919d4.GIF
URL: <http://list.coin-or.org/pipermail/clp/attachments/20170306/2623f1e1/attachment.gif>
More information about the Clp
mailing list