Skip to content

Multiple C main programs #555

@hiker

Description

@hiker

While Fab can handle multiple Fortran main program, it can't handle multiple C main programs (since a main program tries to add main as a symbol, so you end up with duplicated symbol). This affect the Socrates build script (which has many small utilities in C).

My suggested solution would be to add main@filename.c (or so) as symbol, instead of just main. This way Fab should be able to handle multiple main programs. It needs a thorough check though (analysis step, build artefacts, ...), linking - to see if this all will work as expected.

If anyone has any comments (or better suggestion), I appreciate any feedback before I start implementing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions