Wednesday, November 22, 2006

Building BOINC Samples on CentOS

Why am I blogging this? Because I initially (and repeatedly) missed the "documentation" at the top of Makefile.

Previously, I was editing the makefile to be more "portable". Only, those edits did not link against the static version of libstd++, which is the prefered way of linking applications that will be pushed down to the client. Doing so avoids runtime issues with missing or mismatched library versions.

But first, you need to build the BOINC client software. Then, as mentioned above, some of the examples like uppercase require a link to the static version of libstdc++.a. The makefiles for those projects contain:
# Do this first:
# ln -s `g++ -print-file-name=libstdc++.a`
# This creates a symbolic link to the C++ library,
# which is linked statically
So, just do:
ln -s `g++ -print-file-name=libstdc++.a`
to get them going.

No comments: