chaitusvk Posted March 15 Report Share Posted March 15 HI i created pointer of target socket tlm_utils :: simple_target_socket_tagged<MODULE> * socket; in SCTOR() { socket = new tlm_utils::simple_target_socket__tagged<MODULE> ("My_socket"); } when i am binding the socket Initiator->socket(MODULE->socket ) I am getting error can any one please help me ... Quote Link to comment Share on other sites More sharing options...
Eyck Posted March 15 Report Share Posted March 15 This is basic C++, you need to dereference the pointer: Initiator->socket(*(MODULE->socket)); Using raw pointer and new is discouraged, yyou should use std::unique_ptr. My advise is to spend some time in getting more familiar with modern C++ Quote Link to comment Share on other sites More sharing options...
chaitusvk Posted March 15 Author Report Share Posted March 15 55 minutes ago, Eyck said: This is basic C++, you need to dereference the pointer: Initiator->socket(*(MODULE->socket)); Using raw pointer and new is discouraged, yyou should use std::unique_ptr. My advise is to spend some time in getting more familiar with modern C++ Thank you ..... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.