I want to embed xterm in qwidget. I am using QX11EmbedContainer but i am getting an error on compile time while using QX11EmbedContainer on MacOS:

" unable to define symbols for architecture i386: QX11EmbedContainer :: QX11EmbedContainer (QWidget*) "

I am making instance as:

QX11EmbedContainer * container = new QX11EmbedContainer (new QWidget());

Can anyone guide me?

Thank you.