Re: Order of initialization of global/static variables

2014-04-29 Thread Jonathan Wakely
On 29 April 2014 16:25, Yaron Dayagi wrote: > Hello, > In gcc 4.4.6 we had no problem with the order of initialization. > In gcc 4.7.2 we do have a problem. > A CPP file defined GlobalObj_1 (declared extern in the H file): > CMyClass GlobalObj_1. > Another CPP file declared GlobalObj_2 (also declar

Order of initialization of global/static variables

2014-04-29 Thread Yaron Dayagi
Hello, In gcc 4.4.6 we had no problem with the order of initialization. In gcc 4.7.2 we do have a problem. A CPP file defined GlobalObj_1 (declared extern in the H file): CMyClass GlobalObj_1. Another CPP file declared GlobalObj_2 (also declared extern in the H file).= The CPP file used copy const