X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Tony Richardson Subject: Re: Complex.h file Date: Sat, 19 Nov 2005 18:55:33 +0000 (UTC) Lines: 26 Message-ID: References: <20051119113646 DOT e162e782 DOT john AT jcoppens DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com John Coppens jcoppens.com> writes: > I'm tying to port a program of mine to cygwin, and have the following > problem: > > complex.h is not found. > > The compiler complains about the missing complex.h and about the complex > type in a file, even though I read gcc has complex C-99 support built-in > since 3.4.1 Well gcc 3.4.4 has built-in support for complex types, i.e. the following works (without including complex.h) _Complex double x = 7 + 8i; x += -3 - 4i; x *= 2 + 5i; x /= 3 - 4i; printf("(%f,%f)\n", creal(x), cimag(x)); but it does not have built-in support for all of the complex functions that are declared in complex.h. I would assume the "problem" is more of newlib issue than a gcc one. Tony Richardson -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/