|We don't bite newbies here... much|
use Inline CPP to call function in so file not workingby codesoar (Novice)
|on Jan 09, 2014 at 03:13 UTC||Need Help??|
codesoar has asked for the
wisdom of the Perl Monks concerning the following question:
i have .h and .cpp file:
then i compile this with
then use perl Inline CPP to call it:
Here I got:
perl: symbol lookup error: /home/xxx/test_so/_Inline/lib/auto/e_8555/e_8555.so: undefined symbol: say_hi
But if I test the .so file with below .cpp file test.cpp:
g++ -L. -lsay_hi test.cpp -o test
Run the test:
Is there something wrong with my Perl (v5.8.0), or did I miss anything?
thanks a lot!