1

I've been following the lessons fine, and when I got to the point in Week 1 where he tells you to sign up for the CS50 IDE, I did so. But even when duplicating the exact code from the first example:

#include <cs50.h>
#include <stdio.h>

int main(void) 
{

    string name = get_string();
    printf("hello, %s\n", name);

}

It throws an error. Apparently, it doesn't like "get_string()". I did a little research, and apparently it used to be "GetString()," but they changed it for the 2017 edition. I tried that, and it works. So apparently my CS50 IDE has an older version of the library. I wouldn't mind changing "get_string()" to "GetString()" every once and a while, but I'm afraid that it might be different in other areas as well. How do I fix this and update my IDE to the new version so that I won't have any problems down the road?

3
  • I ran into this issue also, was so confused at first.
    – Paul H
    Commented Jan 16, 2017 at 19:39
  • I had this same issue occur today on 3-15-17. I figured I must be a genius that I figured how to change get_string over to GetString to follow along in Lecture Week2, but maybe I just didn't update my appliance yet ...
    – EndoD
    Commented Mar 16, 2017 at 2:51
  • thanks for this. I guess others are having the same issue.
    – EndoD
    Commented Mar 16, 2017 at 2:52

2 Answers 2

3

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

1
  • This works! Thank you, this was driving me insane. I'll select your answer as correct ASAP, but you answered so fast it won't even let me yet :-)
    – pixlark
    Commented Jan 12, 2017 at 13:26
2

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 section of pset1 specification? update50 should do the trick.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .