MySQL Forums
Forum List  »  Source, Builds, Binaries

Re: NDB connection examples :link error
Posted by: Kent Boortz
Date: January 29, 2010 08:44AM

As you know, the NDB library is a C++ library.

Compilers for C++ all use their own name mangling to create symbols acceptable by a "traditional" linker. Even worse, different major versions of the *same* C++ compiler might use different name manglings. So in general you can't link to a C++ library unless your objects uses the same name mangling, i.e. the same C++ compiler.

Only solution I can see to your problem, is to use the same C++ compiler as the library was created with, or compile MySQL cluster from source, and use the client library from there.

Hope I interpreted your problem correctly, you don't specify what package you are using, your link line that produces the output above, what C++ compiler and version you are using. So I just *guess* this is your problem,

kent

Kent Boortz, Release Staff Engineer
Oracle, the MySQL team, www.mysql.com



Edited 1 time(s). Last edit at 01/29/2010 08:39AM by Kent Boortz.

Options: ReplyQuote


Subject
Views
Written By
Posted
4128
January 27, 2010 04:43AM
Re: NDB connection examples :link error
2010
January 29, 2010 08:44AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.