your code's confusing.
You seem to be mixing up port binding and assigning to channels. You don't need the module "my_mod" at all, as far as I can see.
Also I can't see how you're generating any stimulus.
Finally, you haven't shown sc_main.
But the error message is saying
port q is not bound.
You might want to look at our website tutorial, http://www.doulos.com/knowhow/systemc/tutorial/, for a basic introduction.
Also I would recommend using SystemC 2.3.0 if you've got a choice,