Search:

Type: Posts; User: Salem

Search: Search took 0.37 seconds.

  1. Replies
    13
    Views
    17,993

    Well you need to compile with gcc prog.c -lm...

    Well you need to compile with

    gcc prog.c -lm
    to link with the math library.

    The reason it works with a constant is because the compiler can see what you're doing, and optimise out an actual...
  2. Replies
    13
    Views
    17,993

    Post your error messages. Also, where do you...

    Post your error messages.

    Also, where do you assign the result of calling pow() ?
Results 1 to 2 of 2