mebingj
26th January 2011, 11:07
in my Qt project i have a QString variable in one class(variable is gloablly defined in dialog1.cpp)
QString d;
i am trying to access the same variable from another class (variable is declared as extern in timeall.cpp)
extern QString d;
Wen i compile the file, there appears to be a linker error
collect2: ld returned 1 exit status
QString d;
i am trying to access the same variable from another class (variable is declared as extern in timeall.cpp)
extern QString d;
Wen i compile the file, there appears to be a linker error
collect2: ld returned 1 exit status