Skip to main content
Ebun.1
Senior
February 17, 2021
Question

How to import the header file with the preprocessor

  • February 17, 2021
  • 1 reply
  • 507 views

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 topic has been closed for replies.

1 reply

Andrew Neil
Super User
February 23, 2021

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.