This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: linker error with gcc296
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Nabeel P Khan <nkhan at mail dot eecis dot udel dot edu>, gcc-help at gcc dot gnu dot org
- Date: Wed, 14 Jul 2004 14:02:52 -0500
- Subject: Re: linker error with gcc296
- References: <Pine.GSO.4.58.0407141448150.14494@stimpy.eecis.udel.edu>
Hi Nabeel,
My guess is the coordinates.h header file did not properly include all the
header files it is dependent upon. (A Very, Very Bad Habit that I strongly
discourage.)
Assuming C++, is this line near the top of coordinates.h...
#include <cassert>
...?
Also noteworthy, <cassert> and it's C counterpart <assert.h> are not
idempotent, and probably should not actually be include in any header
file. The routine should be moved into the coordinates.cpp file, or (if
inline or if template so it really should stay in the header file) have the
assert removed from within the context of a header file. But that's an
issue for another time.
HTH,
--Eljay