automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange problem


From: Bob Friesenhahn
Subject: Re: strange problem
Date: Sun, 23 Jan 2005 22:38:12 -0600 (CST)

On Mon, 24 Jan 2005, Antonio Coralles wrote:

I'm writing on a program [C++] for about six month. Recently I tried to switch from my hand coded makefiles to autoconf/automake. I removed all my makefiles, replaced them with the according Makefile.am's and managed to build my program with ./configure; make after two days. So far, so good. Now the problem is, that the resulting executable contains lot's of bugs - bugs which didn't occur with my hand crafted make files. I tried to track them

One thing to be aware of is that C++ only assures static initialization order at the translation unit (per source file) level. Static initialization includes global variables. If the files are linked somewhat differently, you may end up depending on something which has not intialized yet.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]