8 votes

Undefined reference to `GetString'

Download the cs50 from: http://mirror.cs50.net/library50/c/library50-c-5.zip Extract it. (You will get two files cs50.c and cs50.h) Now copy both the files to your default library folder. (which ...
Faizan Rizvi's user avatar
4 votes
Accepted

Compilation error in hello.c: undefined reference to `get_string'

Compiler does not complain about missing cs50.h, so that looks right. The linker does complain, though, and that's probably because you did not pass -lcs50 when compiling (telling the linker to ...
Blauelf's user avatar
  • 20.9k
3 votes
Accepted

CS50 IDE seems to use an old version of the CS50 library

It should be sufficient to update the IDE, using the update50 command, on the terminal. It is also possible that the announced changes take a few days or weeks to complete
MARS's user avatar
  • 5,169
2 votes

CS50 IDE seems to use an old version of the CS50 library

What IDE version? It is displayed in the menu bar next to the cloud9 icon. You can version50 at the command line. Current version is 94 as of this writing. Did you run update50 as per the Updating ...
DinoCoderSaurus's user avatar
2 votes

GetInt + sscanf -- why doesn't it accept only characters?

Good catch. Actually, c will never be populated with this command if (sscanf(line, " %i %c", &n, &c) == 1). It is a matching failure. From man sscanf: A conversion specification, which ...
DinoCoderSaurus's user avatar
1 vote

cs50.h: No such file or directory

Looks like your codespace is in Recovery mode. Please follow the instructions here: https://cs50.readthedocs.io/code/#codespaces-run-into-recovery-mode
curiouskiwi's user avatar
  • 18.7k
1 vote
Accepted

Help in Resize, biSize headers not sizing correctly

Hmmm..... So here's my question for you. WHICH fields are supposed to be updated in the headers when resizing to something other than 1? Hint: check50 is giving you a clue. If this answers your ...
Cliff B's user avatar
  • 68.8k
1 vote

cannot find cs50.h within the cs50 ide

Instead of getstring, it should be get_string.
fwoosh's user avatar
  • 201
1 vote
Accepted

Functions outside Cs50.h

As one can see on https://github.com/cs50/libcs50/tree/master/src those contain quite some code to keep you from messing up and provide a nice user interface. The simplest alternative would be scanf, ...
Blauelf's user avatar
  • 20.9k
1 vote
Accepted

CS50 IDE cs50.h library problem 2017

The compiler command is make test (unless you want to supply all the switches for clang). Notice that make echos to the terminal the actual clang command it uses.
DinoCoderSaurus's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible