I am using the libdvbv5 library however I am having issues getting my program to compile.
I have the headers in /usr/local/include and there is libdvbv5.so in /usr/local/lib.
The code is extremely simple:
#include "libdvbv5/dvb-dev.h"
void doSatTest() {
struct dvb_device *dvb;
struct dvb_dev_list *dvb_dev;
dvb = dvb_dev_alloc();
}
The eclipse indexer is satisfied that the function "dvb_dev_alloc" exists in the header file "dvb-dev.h" and the file compiles but fails on link
I have stopped using the eclipse builder so i can simplify the build command and pinpoint what is happening.
I try to compile and link using the following command:
g++ sat_test.cpp -ldvbv5
However it fails with:
sat_test.cpp:(.text+0x1f): undefined reference to `dvb_dev_alloc()'
What am I missing?