This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: <complex.h> for Cygwin?


--- Ven 1/10/10, Jan Chludzinski  ha scritto:

> I need to write some simple code
> which involves complex values. ?I
> remembered that C99 added support for complex values and
> tried to use
> <complex.h> (different from C++'s <complex>) -
> I tried ccos() and got
> the error below.
> 
> Another option is to use GLS?

GLS seems the easy way.
newlib is not C99 complete for complex numbers

Marco

> 
> ---John
> 
> 
> On Thu, Sep 30, 2010 at 4:18 PM, Marco Atzeri <marco_atzeri@yahoo.it>
> wrote:
> > --- Gio 30/9/10, Jan Chludzinski ?ha scritto:
> >
> >> After doing some web searches for
> >> <complex.h> and Cygwin, I found
> >> there doesn't seem to be any support unless I
> use:?gcc
> >> -I/usr/include/mingw -lm tc.c ?But I still end up
> with:
> >>
> >>
> /cygdrive/c/DOCUME~1/JOHNC~1.ECS/LOCALS~1/Temp/ccAPGnIv.o:tc.c:(.text+0x3d):
> >> undefined reference to `_ccos'
> >> collect2: ld returned 1 exit status
> >>
> >> I'm really not interested in working with MinGW
> either.
> >> ?All the
> >> messages about <complex.h> and Cygwin are
> rather old
> >> (<2007) so I was
> >> hoping that 1.7 would remedy the problem.
> ?Evidently not?
> >>
> >> ---John
> >>
> >
> > John,
> > newlib (cygwin libc-like library) has not the complex
> type,
> > however on cygwin complex numbers are supported by
> > the gcc/g++ compiler
> >
> >
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/complex.h
> >
> > what are exactly your needs ?
> >
> > Marco
> 
> --
> Problem reports:? ? ???http://cygwin.com/problems.html
> FAQ:? ? ? ? ? ? ? ?
> ???http://cygwin.com/faq/
> Documentation:? ? ? ???http://cygwin.com/docs.html
> Unsubscribe info:? ? ? http://cygwin.com/ml/#unsubscribe-simple
> 
> 





--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]