Skip to content

Energia not honoring #ifdef preprocessor directives when linking libraries #811

@axsdenied

Description

@axsdenied

When creating a list of libraries for linking, Energia seems to add all #include statements, without actually checking #ifdef c preprocessor directives.

For example, trying to write one sketch for multiple devices:

define _TIVA

ifdef _TIVA

include "A.h"

else

include "B.h"

endif

will try to link both A and B libraries at the same time and possibly create conflict.

Also mentioned here:
http://forum.43oh.com/topic/6284-how-to-select-correct-include-file/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions