Closed AbdManian closed 2 years ago
This has already being discussed in SystemC forum. Your build command is missing the correct C++ Standard flag with which the SystemC kernel was compiled with.
Refere here for details: https://forums.accellera.org/topic/6792-how-to-fix-undefined-reference-to-sc_disable_virtual_bind_undefined_/?tab=comments#comment-18135
This has already being discussed in SystemC forum. Your build command is missing the correct C++ Standard flag with which the SystemC kernel was compiled with.
Refere here for details: https://forums.accellera.org/topic/6792-how-to-fix-undefined-reference-to-sc_disable_virtual_bind_undefined_/?tab=comments#comment-18135
Thank you. As a record the issue fixed by using cmake -DCMAKE_CXX_STANDARD=14 -DBUILD_SHARED_LIBS=OFF ..
@AbdManian , you can go ahead and close the issue.
fixed this problem by setting CMakeLists.txt : set(CMAKE_CXX_STANDARD 14), (change 17 to 14)
SystemC fails to link. Platform Linux, G++ 9.3.0 Built with cmake version 3.16.3
Get link error building empty application.
Sample code: cmd:
g++ sample.cpp -ISYSC_DIR -lsystemc -LSYSC_LIB_DIR
Also mention I have same issue in Windows platform with MinGW.