On Thursday 18 September 2003 15:57, Martin v. Löwis wrote: > Josh Stern wrote: > > Use of the C99 header <complex.h> in a C library header that > > is then used within a C++ program causes compile/linkage > > problems. This problem was discovered via failing to compile > > small examples using the m_get function in the meschach library > > version included in Debian. > > This is not a bug. The C99 complex type is not supported in > ISO C++98, or GNU C++.
I wasn't trying to actually do anything with C99's complex in a C++ program. At present, g++ compilation fails with misdirected error messages about templates if <complex.h> is included at all, while the compilation succeeds if the **same** file, /usr/include/complex.h is copied to a file with a different name and then included under that name. If it is really felt necessary to continue to reserve the name <complex.h> for C++ (even under C linkage directive) then at least one might hope for a better error message. -= Josh