Skip to content

Generated test application (blechc -app) includes the blech program as .c file #12

@schorg

Description

@schorg

The Blech compiler automatically generates a test program - blech.c by default - with the following command line

blechc --app --trace control.blc

Compiling all generated C-files generates duplicate symbol warnings.

cd blech
clang -Iinclude *.c
duplicate symbol '_blc_blech_01control01_init' in:
    /var/folders/l9/p0sgmsvj16v16tgzlplc3flm0000gn/T/blech-4471ee.o
    /var/folders/l9/p0sgmsvj16v16tgzlplc3flm0000gn/T/control-74f76a.o
... and so on

Reason: The EntryPoint file control.c is included as a control.c instead of control.h
into blech.c.

I am on it.

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