Skip to content

The _classes.h header file isn't generated for a project with only a main program #1278

@georgeslabreche

Description

@georgeslabreche

When only defining a main program without any classes:

<main name = "demo_app">Demo App</main>

Running gsl project.xml generates a demo_app.c file that has a #include "demo_classes.h" but the demo_classes.h isn't generated. Neither are the include/demo.h nor the include/demo_library.h header files generated, which means that the project dependencies are not included.

As a workaround I define a dummy class that gets generated but isn't developed any further:

<class name = "demo_app_dummy" selftest = "0" />
<main name = "demo_app">Demo App</main>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions