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'
/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/ $ 

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 .