|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
undefined symbolHi out there,
I use swig on a rather large C-function-library without serious problems. Now I buildt a few C++ classes around that lib, but generating a ruby interface fails with this message on the shared lib: undefined symbol: _ZNSs4_Rep20_S_empty_rep_storageE Its seems to be added by swig, so I am unsure, how to react on this. If anyone know this behaviour, please let me know! Thanks in advance, Ralf ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Swig-user mailing list Swig-user@... https://lists.sourceforge.net/lists/listinfo/swig-user |
|
|
Re: undefined symbol2009/10/28 Ralf Mueller <ralf.mueller@...>:
> Hi out there, > I use swig on a rather large C-function-library without serious > problems. Now I buildt a few C++ classes around that lib, but generating > a ruby interface fails with this message on the shared lib: > undefined symbol: _ZNSs4_Rep20_S_empty_rep_storageE > > Its seems to be added by swig, so I am unsure, how to react on this. If > anyone know this behaviour, please let me know! > The symbol is the mangled form of std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage, which being undefined seems to imply that you're missing a link against libstdc++ somewhere. Did you use g++ to compile the C++ code or gcc? Alan ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Swig-user mailing list Swig-user@... https://lists.sourceforge.net/lists/listinfo/swig-user |
|
|
Re: undefined symbol - more explanationa very simple example:
ram@melian:~/src/cdi/branches/cdi-ram/cdi/interfaces/test/simple> cat simple.h class S { S(); ~S(); void test(char *var); int i; }; ram@melian:~/src/cdi/branches/cdi-ram/cdi/interfaces/test/simple> cat simple.cpp #include <iostream> #include "simple.h" using namespace std; S::S() {i=1;cout << "init" << endl;} S::~S() {i=0;cout << "destroy" << endl;} void S::test(char *var) {cout << i << ' ' << var << endl;} ram@melian:~/src/cdi/branches/cdi-ram/cdi/interfaces/test/simple> cat rsimple.i %module rsimple %{ #include "simple.h" %} %include "simple.h" after creating a makefile with mkmf module for ruby an d compiling, i get: ram@melian:~/src/cdi/branches/cdi-ram/cdi/interfaces/test/simple> irb -rrsimple /home/ram/src/cdi/branches/cdi-ram/cdi/interfaces/test/simple/rsimple.so: /home/ram/src/cdi/branches/cdi-ram/cdi/interfaces/test/simple/rsimple.so: undefined symbol: _ZNSt8ios_base4InitD1Ev - /home/ram/src/cdi/branches/cdi-ram/cdi/interfaces/test/simple/rsimple.so (LoadError) from /home/ram/local/lib/ruby/1.8/irb/init.rb:254:in `load_modules' from /home/ram/local/lib/ruby/1.8/irb/init.rb:252:in `each' from /home/ram/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules' from /home/ram/local/lib/ruby/1.8/irb/init.rb:21:in `setup' from /home/ram/local/lib/ruby/1.8/irb.rb:54:in `start' from /home/ram/local/bin/irb:13 So, I get another undefinded symbol here, but it's a simmilar behaviour, I guess. Regards Ralf ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Swig-user mailing list Swig-user@... https://lists.sourceforge.net/lists/listinfo/swig-user |
| Free embeddable forum powered by Nabble | Forum Help |