// a.cpp
void foo() {
uint16_t var_in_a;
}
// b.cpp
void foo() {
uint16_t var_in_b;
}
// c.cpp
void foo() {
uint16_t var_in_c;
}
In this example, I have to include <stdint.h>
file in all .cpp
files. I want to avoid this activity. I want to specify this <stdint.h>
file in my builder / IDEs properties and make it include this file in every .cpp
file.
Is there any way to make compiler to include specified files when compiling any .cpp
files?
Please give an answer for following compilation tools / IDEs
- visual studio code
- visual studio
- g++