Getting error in cdb_connect() confd_errno 34

Hi I am new to cdb,
i have created a socket and i am trying to connect to using cdb_connect and i am getting an error DEBUG Library not initalized.

Can anyone please help me…??

See confd_init() in the confd_lib_lib(3) man page and for example here: How confd interacts with the application?