cancel
Showing results for 
Search instead for 
Did you mean: 

How to import the header file with the preprocessor

Ebun.1
Senior

Thank you for helping.

environment:

STM32CubeIDE Ver1.5.1

Please tell me how to include hoge.h in the preprocessor without explicitly saying #include" hoge.h ".

Thank you.

This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1

Why would you want to do that?

#include is precisely the mechanism to use to include a header file - that is its entire purpose & raison d'etre.

If you want symbols to be defined globally for the project, use the 'Paths and Symbols' in the Project settings:

0693W000007ZDnTQAW.png

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.