How to add compiler flags on codeblocks

前端 未结 4 1100
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-28 15:05

I\'ve been trying to compile a simple multithreaded piece of code I found online in an effort to learn how to multithread.
To run this piece of code I need to use the co

4条回答
  •  猫巷女王i
    2020-11-28 15:35

    Another option instead of using the "other options" is to create a custom compiler flag. So in addition to a compiler flag, you can specify a linker flag. In the case of the -pthread (which I also was having trouble with) it looked like it needed the linker flag as well, as mentioned by Michi One can create a new compiler flag by right clicking and selecting the new option

提交回复
热议问题