I am trying to connect to Jack (Kubuntu 18.04, so it is Jack2) from a Qt app:
Qt Code:
  1. void JackPortInfo::signal_handler ( int sig )
  2. {
  3. jack_client_close ( client );
  4. qDebug() << "JackPortInfo: signal received, exiting ...";
  5. exit ( 0 );
  6. }
To copy to clipboard, switch view to plain text mode 
But I ran into a problem:
CMakeFiles/TestApp.dir/src/jackportinfo.cpp.o: In function `JackPortInfo::signal_handler(int)':
/home/me/projects/TestApp/src/jackportinfo.cpp:32: undefined reference to `jack_client_close'
collect2: error: ld returned 1 exit status

I thought
#include <jack/jack.h>
should resolve this, but it doesn't.

There is a bunch of jack related .h files in
/usr/src/linux-headers-4.15.0-74-generic/include/config/snd/
so it seems that what should be there is present.
Maybe I ought to post this question in a different forum?