In main.cpp steht folgendes:
Code:
#define TRAINING_NS "http://www.schneider-electric.com/DPWS/2006/03/Training"
struct qname SimpleLightType = {TRAINING_NS, "SimpleLight"};
Und in der Include-Datei steht:
Code:
struct qname
{
char * ns; /**< Namespace. */
char * lname; /**< Local name. */
};
Und hier nochmals die Fehlermeldung des Compilers:
Code:
main.cpp:15: error: two or more data types in declaration of `SimpleLightType'
main.cpp:15: error: `SimpleLightType' must be initialized by constructor, not by
`{...}'
Woran kann es liegen?
Lesezeichen