MySQL NDB Cluster 8.1 Manual
MySQL NDB Cluster 8.0 Manual
NDB Cluster Internals Manual
NDB API applications must be linked against both the MySQL and
NDB client libraries. The
NDB client library also requires some
functions from the mystrings library, so this
must be linked in as well.
The necessary linker flags for the MySQL client library are
returned by mysql_config
--libs. For multithreaded
applications you should use the --libs_r
instead:
$> mysql_config --libs_r
-L/usr/local/mysql/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt
-lnsl -lm -lpthread -L/usr/lib -lssl -lcrypto
It is now necessary only to add -lndbclient to
LD_FLAGS, as shown here:
LDFLAGS="$LDFLAGS "`mysql_config --libs_r`
LDFLAGS="$LDFLAGS -lndbclient"