Search:

Type: Posts; User: symf

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    5,044

    I'm out of advice other than try: gcc cuberoot.c...

    I'm out of advice other than try: gcc cuberoot.c -o cuberroot -lm ...

    Otherwise, hopefully someone more knowledgeable can help you...
  2. Replies
    14
    Views
    5,044

    I had these error calls of not finding math...

    I had these error calls of not finding math functions. "-lm" did the trick with me. Not sure why your compiler doesn't find the source file at all?...
  3. Replies
    14
    Views
    5,044

    I can't see you trying the "-lm" in your command...

    I can't see you trying the "-lm" in your command line where you compile.
    Did you try that?

    just a not on the code: I've never seen (doesn't mean it's not possible) writing 'return (0);'. Write...
  4. Replies
    14
    Views
    5,044

    with some compilers you have to explicitly link...

    with some compilers you have to explicitly link the math.h library. e.g: gcc -o main.exe main.c -lm
  5. Replies
    4
    Views
    4,855

    problem solved. I was blind for the last couple...

    problem solved.
    I was blind for the last couple of days from the free* nrutil.c memory allocation/freeing functions I was dealing with a lot recently.
    'brewbuck' + 'vart': quite rightly, fopen()...
  6. Replies
    4
    Views
    4,855

    SIGSEGV, memory allocation/freeing problem

    Hello, I'm getting the following message in gdb:

    Program received signal SIGSEGV, Segmentation fault.
    0x400cc1ce in _IO_flush_all () at genops.c:825
    825 genops.c: No such file or directory.
    in...
Results 1 to 6 of 6