Results 1 to 3 of 3

Thread: how to add "-pthread" prefix when compiling in IDE like geany or code::blocks ?

  1. #1
    Join Date
    Jan 2011
    Beans
    78

    how to add "-pthread" prefix when compiling in IDE like geany or code::blocks ?

    guys
    I want to write and compile a program that has pthread in it in IDE .

    in terminal I use -pthread option of gcc to compile it, (otherwise I would get error frmo gcc) but in IDEs like geany or code::blocks I dont know how to tell it to use -pthread when it compiles so it deosnt give me error ?


    btw, which IDE , I should use for programs in C ?
    I am from Kurdistan and I use Kurdish Ubuntu , check out my blog about ubuntu - Shevin

  2. #2
    Join Date
    Aug 2007
    Location
    Novocastria, Australia
    Beans
    754
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: how to add "-pthread" prefix when compiling in IDE like geany or code::blocks ?

    For code blocks:

    Go to settings -> compiler and debugger -> linker setting and add pthread there.

    As for which IDE, use whichever one you like the best.

  3. #3
    Join Date
    Jan 2011
    Beans
    78

    Re: how to add "-pthread" prefix when compiling in IDE like geany or code::blocks ?

    in the linker setting I can see
    Other linker options , shall I enter -pthread ? or pthread or what
    I am from Kurdistan and I use Kurdish Ubuntu , check out my blog about ubuntu - Shevin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •