|
From: | Peter O'Gorman |
Subject: | Re: Issues with dlopen and compile of modules... |
Date: | Wed, 27 Oct 2004 11:38:29 +0900 |
User-agent: | Mozilla Thunderbird 0.7.3 (Macintosh/20040803) |
Chris Bowlby wrote:
#include <iostream> void test_fun(int &number) { cout << number << "\n"; }
Does nm on the libtest.so show test_fun as being defined? I think it is probably mangled, this is c++. It is advisable to use extern "C" if you plan on looking up the symbol and are using a c++ compiler.
Peter -- Peter O'Gorman - http://www.pogma.com
[Prev in Thread] | Current Thread | [Next in Thread] |