[Coin-discuss] Compile BCP 1.0 on SunOS 5.10
Lou Hafer
lou at cs.sfu.ca
Wed Nov 1 13:17:05 EST 2006
Dan,
I'm testing this on Solaris 5.10, with Sun/Studio 11 compilers, using
the stable/1.0 revision checked out from subversion. Looks like you're using the
release tarball 1.0.0. I'm hoping there are no significant differences.
The immediate cause of your problem is that Solaris doesn't define
strlen, etc, in cstring; it prefers string.h. If you add the line
#include <string.h>
immediately below #include <cstring> in BCP_string.hpp, the main compile will
go through without error.
But ... if you try to build the test, you'll run into another problem,
a complaint that the file config_coinutils.h cannot be found. The proper fix
for this requires a correction to test/BAC/Makefile.am (adding COINUTILSOBJDIR
to the include path) , which means you'll need to run the Gnu autotools, which
means you'll need to upgrade CoinUtils, which means ... well, you probably
don't want to get into it (but email me if you do, and I'll finish the story).
Instead, try this ... at some point before you run `make test', copy the file
build/CoinUtils/inc/config_coinutils.h
to
CoinUtils/src
That should allow the test to compile and run.
Hope this does it for you; post again if you run into trouble.
Lou
More information about the Coin-discuss
mailing list