1

I updated the CS50 IDE and was not able to make 'find' in pset 3. It was working before I updated the IDE.

The error it gives is:

$ make all
clang -ggdb3 -O0 -std=c11 -Wall -Werror -o find find.c helpers.c -lcs50 -lm
find.c:38:21: error: too few arguments to function call, single argument 'prompt' was not specified
        int straw = get_int();
                    ^~~~~~~~~
/usr/include/cs50.h:131:22: note: expanded from macro 'get_int'
#define get_int(...) ZERO_OR_ONE_ARG(get_int, ##__VA_ARGS__)
                     ^               ~~~~~~~
/usr/include/cs50.h:60:97: note: expanded from macro 'ZERO_OR_ONE_ARG'
#define ZERO_OR_ONE_ARG(NAME, ...) NAME(_ZERO_OR_ONE_ARG(NAME, ARGS(__VA_ARGS__), ##__VA_ARGS__))
                                                                                                ^
/usr/include/cs50.h:128:1: note: 'get_int' declared here
int get_int(string prompt);
^
1 error generated.
make: *** [find] Error 1
~/workspace/pset3/find/ $ 
2
  • see cs50.stackexchange.com/questions/26049/…
    – Jason_V
    Commented Jul 16, 2017 at 2:45
  • It seems that there has been some kind of problem with the last update, you may find that you wait for some time to solve by the staff, and try to update50 later, as well as reddit
    – MARS
    Commented Jul 16, 2017 at 12:11

1 Answer 1

1

Make sure you close all terminals after update50. This update includes environment changes, which will be loaded when you open a new terminal. With the latest environment, you will notice that the clang command option -std=c11 changes to -std=gnu11, and that essentially fixes this problem.

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