Skip to content

No stdafx.h possible for Arduino projects. #1328

Closed
@wmacevoy

Description

@wmacevoy

Due to transitions in the avr-gcc libs, it is currently necessary to include definitions before including Arduino.h in a source file. From the IDE, this is impossible since that is automatically prepended. Can the automatic rule be changed to

if stdafx.h exists in the project, then

#include "stdafx.h"
#include <Arduino.h>
...

This is consistent with the use of a stdafx.h header file in C++ projects.

Metadata

Metadata

Assignees

Labels

Component: PreprocessorThe Arduino sketch preprocessor converts .ino files into C++ code before compilationType: WontfixArduino has decided that it will not resolve the reported issue or implement the requested feature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions