Undefined variable issue

In reply to Chethan Mohan:

Because either you forgot to compile the definition of c2c_data_transaction, or you compiled it in scope that is not visible in the scope where you defined c2c_pkt_driver.