2021-11-29 01:03 PM
Hello :)
I'm trying to include main.c into Screen1View.cpp but I do not have any idea how to do it.
I need to use array of 64 elements from main file into Screen1View file (the array is called current_temp).
Does anyone have any idea how to do it? If so, how the include path should look like?
2021-11-29 11:08 PM
#ifdef __cplusplus
extern "C" {
#endif
extern ??? type current_temp[];
#ifdef __cplusplus
}
#endif
2021-11-30 01:27 AM
#include "main.h"
extern"C"
{
extern type current_temp[];
}
you would better watch 12 st workshops.