Hi out there
in a header file i built s struct AND I declare and initialize it
The h.-file is referenced in several cpp files.
Although the first two lines in the h.-file should prevent multiple definitions
the compiler complains multiple definition and initialization of the structure
“Traveler” like
“multiple definition of `Traveler’;”
Is there a possible problem with the structure?
Start your code here
#ifndef __MOBILEWAETH_INCLUDED
#define __MOBILEWAETH_INCLUDED
struct trav{
charVDD[6];
charTemp[6];
charHum[6];
charPres[7];
charRefPres[7];
charBMEAlt[8];
charLat[11];
charLon[11];
charGPSAlt[8];
charDate[11];
charTime[9];
};
trav Traveler{};
#endif