Skip to content

Problem with multiple independently compiled files when included (redefinition error) #34

@DatanoiseTV

Description

@DatanoiseTV

My build script for PlatformIO is compiling my used .vult "modules" independently and if another function uses Util. for example, I get a compiler error from the C++ compiler about redefinition of the Utility functions.

I've tried with "-tables false" for all but the first vult file, but that doesn't fix the issue.

vultc -ccode -i vultinc/phase -i vultinc/util vultsrc/{INFILE} -o gen_{INFILE}

In file included from lib/vultgen/vultgen.h:5:0,
                 from src/main.cpp:2:
lib/vultgen/gen_blit_vult.h:254:21: note: 'float Util_cvTokHz(float)' previously defined here
 static_inline float Util_cvTokHz(float cv){
                     ^

How do I deal with 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