I'm just beginning to learn C++.  If the test() 
function listed below was in a shared object 
library named mylib.so, how would I access then 
from another .cpp program?  Can someone please 
show me a .cpp example, and then how to link it 
with GNU g++?  I tried to find the answer on google, 
but could not.

-Thanks


#include <iostream>

using namespace std;

void test()
{
  cout << "In test() function" << endl;
}
_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to