Search:

Type: Posts; User: pjs111

Search: Search took 0.00 seconds.

  1. Replies
    16
    Views
    12,300

    THANKS!!! It works. You guys were a big help. I...

    THANKS!!! It works.
    You guys were a big help. I really appreciate it.

    By the way: I didn't know that Capitalization made a difference in C. But now I do...
  2. Replies
    16
    Views
    12,300

    Still doesn't work: %gcc -o isbn isbn.c -L....

    Still doesn't work:


    %gcc -o isbn isbn.c -L. -lcs50
    /var/tmp//ccY3AVxx.o(.text+0x2d): In function `main':
    : undefined reference to `getlonglong'

    Here's the isbn.c file maybe i made a mistake...
  3. Replies
    16
    Views
    12,300

    Looks like it's not looking in my home folder but...

    Looks like it's not looking in my home folder but rather in the usr/bin/ld folder:


    %gcc -o isbn isbn.c -lcs50
    /usr/bin/ld: cannot find -lcs50
  4. Replies
    16
    Views
    12,300

    Still a problem. Looks like it's not picking up...

    Still a problem. Looks like it's not picking up the library. Here's what I've got:



    %gcc -o isbn isbn.c -L.
    /var/tmp//cc3iTfoi.o(.text+0x2d): In function `main':
    : undefined reference to...
  5. Replies
    16
    Views
    12,300

    I just downloaded the file again and somehow now...

    I just downloaded the file again and somehow now the formatting is correct.
    I've still got a problem.
    I did the following steps:

    gcc -c -ggdb -std=c99 cs50.c -o cs50.o
    ar rcs libcs50.a cs50.o...
  6. Replies
    16
    Views
    12,300

    I can't find any(as said before I'm a beginner...

    I can't find any(as said before I'm a beginner with C programming. I don't know all types of lines that should be wrapped). Here's my cs50.h file:

    ...
  7. Replies
    16
    Views
    12,300

    Thanks for the fast responses. I did what you...

    Thanks for the fast responses. I did what you guys said but I still get errors. Here it is:




    %gcc -c -ggdb -std=c99 cs50.c -o cs50.o
    In file included from cs50.c:28:
    cs50.h:36:5: warning:...
  8. Replies
    16
    Views
    12,300

    can't compile library

    I am taking the cs50 computer science course from harvard online. Even though I could just get a regular C compiler program for windows, I want to stick to what they do in the course. So I signed up...
Results 1 to 8 of 8