On Dec 13, 2005, at 11:01, Steve Juranich wrote:
I'm fooling around trying to learn the Guile API.  I'm following the
example in the source distribution of v1.6.7.

I've got a simple little C++ file (please try to ignore the bad style
as it's not relevant to the problem at hand) that goes like this:

C++ "mangles" function names to express the argument types as well. GNU "nm -C" will reverse this, so when you see:

So as a sanity check I run...
prompt$ nm -C libtest.so | grep scm_init
00000b34 T scm_init_test()

... the symbol name in the file is *not* "scm_init_test". Run this command without the "-C" to see what the real symbol name is.

If you add

  extern "C" void scm_init_test();

before the definition I think everything will work.

Ken


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to