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...
Type: Posts; User: pjs111
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...
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...
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
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...
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...
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:
...
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:...
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...