Closed selimrbd closed 9 years ago
Can you try $(CXX) instead of hardcoding gcc in there? Name munging is complier(and version) specific.
Thanks Sharat,
@slymore If it helps: there's tool called c++filt
which demangles symbols:
$ c++filt _ZN2VW9get_labelEP7example
VW::get_label(example*)
Undefined symbol is commonly caused by one of two things:
1) As Sharat explained: the library and your program were compiled by two different/incompatible compilers do the mangling isn't compatible
2) Dynamic linking isn't finding the library (library is in non standard location OR missing -L
Is this solved?
Incidentally, I believe the autoconf build creates a shared library.
-John
On 08/17/2015 07:59 PM, Ariel Faigon wrote:
Thanks Sharat,
@slymore https://github.com/slymore If it helps: there's tool called |c++filt| which demangles symbols:
$ c++filt _ZN2VW9get_labelEP7example VW::get_label(example*) Undefined symbol is commonly caused by one of two things: 1) As Sharat explained: the library and your program were compiled by two different/incompatible compilers do the mangling isn't compatible 2) Dynamic linking isn't finding the library (library is in non standard location OR missing -L during link time)
— Reply to this email directly or view it on GitHub https://github.com/JohnLangford/vowpal_wabbit/issues/748#issuecomment-131998562.
Closing for lack of response.
I am trying to create shared libraries for vowpal wabbit, as I am building a program that needs to link dynamically to VW.
Here is my attempt on the Makefile (for the latest version of VW):
This gets build, but yields error when linked to my C++ code. A typical one:
What am I doing wrong ?