Dackeriah
Dackeriah

Reputation: 1

vscode keeps telling me that the make function doesn't exist and I'm confused

I'm on the first CS50 lecture and I'm entering the code into VS Code exactly how I thought it was supposed to be, but for some reason I keep getting the errors at the bottom. It keeps telling me when I try to run make helloweb that the make function doesn't exist 😪

Here's the code.

    #include <cs50.h>
    #include <stdio.h>
    
    int main(void)
    {
        string answer = get_string("What's your name? ");
        printf("Hello, answer\n");
    }

enter image description here

Upvotes: 0

Views: 1090

Answers (1)

TheUnityGod
TheUnityGod

Reputation: 21

I fixed this issue by running cs50 through Codespaces.

Go to https://code.cs50.io/ and log in with GitHub. After that, you should be able to run Codespaces through VS Code natively by installing the codespaces extension for VS Code. Finally, launch https://code.cs50.io/ through a browser and click "Open in VS Code Desktop".

Upvotes: 1

Related Questions