sumit_tuwien Posted September 25, 2020 Report Share Posted September 25, 2020 Hello! If I import the SystemC library into my codebase instead of compiling it separately, then, is there any compiler define or switch I can turn on to use pthreads ? Regards, Sumit Quote Link to comment Share on other sites More sharing options...
AmeyaVS Posted September 25, 2020 Report Share Posted September 25, 2020 Hello @sumit_tuwien, Easiest way to get such details is by using CMake with Pthreads Configuration enabled to generate compile_commands.json. Just pick one of the SystemC source files from the JSON file for the compiler switches to build SystemC. You can find similar discussion here: https://forums.accellera.org/topic/5960-mingw-compile-issue/?do=findComment&comment=14662 Hope this helps. Regards, Ameya Vikram Singh Quote Link to comment Share on other sites More sharing options...
sumit_tuwien Posted September 28, 2020 Author Report Share Posted September 28, 2020 Hi @AmeyaVS I am not building it, rather including these in my code base. Do you have any idea how to do in this case ? Regards, Sumit Quote Link to comment Share on other sites More sharing options...
sumit_tuwien Posted September 28, 2020 Author Report Share Posted September 28, 2020 I guess SC_USE_PTHREADS needs to be defined. Regards, Sumit Quote Link to comment Share on other sites More sharing options...
AmeyaVS Posted September 28, 2020 Report Share Posted September 28, 2020 Hello @sumit_tuwien, My suggestion would give you all the necessary compiler define switches necessary to build the SystemC sources included as part of your project build. Hope this helps. Regards, Ameya Vikram Singh 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.