amitk3553 Posted November 11, 2013 Report Posted November 11, 2013 I am getting errors like below. 1) /home/amitk3553/Desktop/BLE/systemc-2.3.0/include/tlm_utils/simple_target_socket.h: In constructor ‘tlm_utils::simple_target_socket::fw_process::fw_process(tlm_utils::simple_target_socket*)’: /home/amitk3553/Desktop/BLE/systemc-2.3.0/include/tlm_utils/simple_target_socket.h:197: error: invalid use of incomplete type ‘struct sc_core::sc_spawn_options’ /home/amitk3553/Desktop/BLE/systemc-2.3.0/include/sysc/kernel/sc_process.h:204: error: forward declaration of ‘struct sc_core::sc_spawn_options’ /home/amitk3553/Desktop/BLE/systemc-2.3.0/include/tlm_utils/simple_target_socket.h:198: error: ‘sc_spawn’ is not a member of ‘sc_core’ 2) hci_test.cpp:12: error: redefinition of ‘class hci_test’ hci_test.cpp:13: error: previous definition of ‘class hci_test’ 3) Error: hci_host_monitor.cpp:24: error: ‘class tlm_utils::simple_initiator_socket’ has no member named ‘b_transport’ Code corresponding to error: hci_host_monitor(sc_module_name nm): sc_module(nm),monitor_tar_socket("monitor_tar_socket") { monitor_tar_socket.b_transport(this, (&hci_host_monitor::compare_rx_data)); } Please tell me the reasons behind these errors Regards cam Quote
Philipp A Hartmann Posted November 11, 2013 Report Posted November 11, 2013 1) /simple_target_socket.h:197: error: invalid use of incomplete type ‘struct sc_core::sc_spawn_options’ See my answer in this thread. 2) hci_test.cpp:12: error: redefinition of ‘class hci_test’ hci_test.cpp:13: error: previous definition of ‘class hci_test’ Make sure to use proper include guards. 3) Error: hci_host_monitor.cpp:24: error: ‘class tlm_utils::simple_initiator_socket’ has no member named ‘b_transport’ This is probably a follow-up error of (1). Greetings from Oldenburg, Philipp amitk3553 1 Quote
amitk3553 Posted November 12, 2013 Author Report Posted November 12, 2013 Thanks Philipp, First two errors(1,2) are solved with your suggestion. But third one is still there. 3) Error: hci_host_monitor.cpp:24: error: ‘class tlm_utils::simple_initiator_socket’ has no member named ‘b_transport’ Code corresponding to error: hci_host_monitor(sc_module_name nm): sc_module(nm),monitor_tar_socket("monitor_tar_socket") { monitor_tar_socket.b_transport(this, (&hci_host_monitor::compare_rx_data)); } Regards cam Quote
amitk3553 Posted November 12, 2013 Author Report Posted November 12, 2013 Thanks Philipp, First two errors(1,2) are solved with your suggestion. But third one is still there. 3) Error: hci_host_monitor.cpp:24: error: ‘class tlm_utils::simple_initiator_socket’ has no member named ‘b_transport’ Code corresponding to error: hci_host_monitor(sc_module_name nm): sc_module(nm),monitor_tar_socket("monitor_tar_socket") { monitor_tar_socket.b_transport(this, (&hci_host_monitor::compare_rx_data)); } Regards cam Its resolved. Quote
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.