Skip to content

Some programs won't compile #10

@jarble

Description

@jarble

I tried to a run a small program from an online tutorial, but web-cpp won't compile it:

#include <cstdio>

int main()
{
    int x = 5;
    char my_name[] = "Lincoln";

    printf("x = %d \n", x);
    printf("My name is %s \n", my_name);
    
    return 0;
}

Instead, it prints an error message:
[error] : Error: no main function found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions