I have a so file with a list of functions, now I would like to build a C++ program to use those functions of the library
I have tried: g++ -Llibname.so xxx.cpp and set the LD_LIBRARY_PATH environment variable of the library .so already, however it is still giving me an error like function not found.
Could you please give me any idea for compliling C++ program with library so?
Many thanks!
#include <iostream>
#include <signal.hpp>
using namespace std;
int main() {
cout << "!!!Hello World!!!" << endl;
processData("/home/radwan/2011-07-22Field1/", 0,
4500, 1,
100, 70,
90, 8,
100,1.8);
return 0;
}
header file declaration:
int processData(char const * directory, int const minimumSignalLevel,
int const maximumSignalLevel, int const samplingFactor,
int const minimumTrackDimension, int const minimumMissingVineStocksDimension,
int const maximumMissingVineStocksDimension, int const maximumFoliageHoleDimension,
int const cellSide4Average,float const & FRF_R_threshold_Value);