Using Tlm ports to pass transaction from C to specman

Hi,

I am trying to send a transaction from C code that is integrated in my Env though TLM port.
I want the C code to send data to the SPecman, What libraries I need? Where Can I find them ??
and how to compile the C code using gcc?

I searched a lot couldn’t find any working example …