This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
constructor calling order
- From: <harsha at vishvakannada dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Wed, 16 Jan 2002 20:12:37 -0800
- Subject: constructor calling order
- Reply-to: <harsha at vishvakannada dot com>
I have a problem with my program compiled using gcc in linux. In windows same code works fine.
I have two cpp files having to global objects of two different classes
I want to know which constructor is get called first ?
how can I change the order ?