I’m trying to compile logger.c file by including libpq-fe.h header file, but linker is giving me error
Undefined reference to some_function present in above header file. I know that this means the linker is unable to link the function declared in header file to its definition in some lib file.
But, the same library is working fine with cdr_pgsql.c file. I wanted to know if I’ve to include some flags while doing
make && make install
Asterisk Version : 15.4.0
Postresql Lib and server both are installed and I’ve tested the library by making a different c program and calling postgres api and I’m able to connect to db successfully.
Please, can you assist me in rectifying this linker issue.