Re: Complex.h file

2005-11-19 Thread Tony Richardson
John Coppens  jcoppens dot com> writes:
> Tony Richardson  evansville.edu> wrote:
> 
> >_Complex double x = 7 + 8i;
> > 
> > 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.
>
> That's good news - I couldn't find much info on the nuts and bolts of the
> complex stuff in gcc-3.4.x (Is there some manual that is up-to-date? The
> gcc manuals I found are from 2002 or older).

The complex number stuff is documented in the gcc info pages.
Look under "C Extensions" and then "Complex Numbers"

> I just tried to change a few complex declarations to _Complex on the big
> machine and they even seem compatible with the normal 'complex'
> declarations.

You might be able to save yourself some typing by using a typedef in
a complex.h file that you create and thereby avoid having to modify the
original source at all.

Regards,
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/



Re: Complex.h file

2005-11-19 Thread John Coppens
On Sat, 19 Nov 2005 18:55:33 + (UTC)
Tony Richardson <[EMAIL PROTECTED]> wrote:

>_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.

Hi Tony.

That's good news - I couldn't find much info on the nuts and bolts of the
complex stuff in gcc-3.4.x (Is there some manual that is up-to-date? The
gcc manuals I found are from 2002 or older).

I just tried to change a few complex declarations to _Complex on the big
machine and they even seem compatible with the normal 'complex'
declarations.

The program doesn't use sophisticated complex functions, so there's a
good possibility it'll work.

Anyway, I'll also explore the minGW way, as I would appreciate
stand-alone executables.


Thanks for the info.
John

--
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/



Re: PerlTk under Cygwin?

2005-11-19 Thread Yaakov S (Cygwin Ports)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gerrit P. Haase wrote:
> Maybe I was using the wrong wndow manager?  Will try again later, need
> to test metacity anyway.

I was just using the XWin multiwindow mode.


Yaakov
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDf/GspiWmPGlmQSMRAm9aAKC0/Rg1m4JOi7D1ZRhzPKvJOvkvvQCaA4c3
iHCUNvhDyAQZTSRkAVFK1qg=
=ptgH
-END PGP SIGNATURE-

--
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/



[ANNOUNCEMENT] Updated: alternatives-1.3.20a-2

2005-11-19 Thread Charles Wilson
alternatives provides a framework for managing installation of multiple 
packages that provide similar features, and selecting between them.


Changes since 1.3.20a-1

* bug fix to handle DOS line endings in the /var/lib/alternatives/ database

* bug fix for race condition when reading configuration files from 
/var/libs/alternatives


--
Chuck

*** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:


[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

--
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/



[ANNOUNCEMENT] Updated: libiconv-1.9.2-2, libiconv2-1.9.2-2, libcharset1-1.9.2-2

2005-11-19 Thread Charles Wilson

The GNU libiconv package provides an iconv() implementation, for use on
systems which don't have one, or whose implementation cannot convert
from/to Unicode.

Changes since libiconv-1.9.2-1
* non-user visible maintainance update
* recompiled against recent gettext release

--
Chuck

*** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

--
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/



[ANNOUNCEMENT] Updated: gettext-0.14.5-1, libintl3-0.14.5-1, gettext-devel-0.14.5-1, libgettextpo0-0.14.5-1

2005-11-19 Thread Charles Wilson
gettext is the GNU package which provides 'national language support' 
for other programs. It includes a number of utility programs.  This is a 
routine update to the latest upstream release.


--
Chuck

*** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

--
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/



Re: Getting 'bad port number' and such, all the time

2005-11-19 Thread Larry Hall (Cygwin)

On 11/19/2005, Daniel Callejas Sevilla wrote:
This has happened for one week now, but as far as I remember, there were no 
changes to my installation one week ago. Everything was working fine 
before. 


Sorry, there's nothing obviously wrong that I can see.  But if this truly
was working a week ago and you didn't change your Cygwin installation at
all (configuration or otherwise) during that time, I would suggest looking
at things that changed external to Cygwin.  For instance, have you performed
any Windows updates?  Fiddled with or installed any firewall or anti-virus
software?

FWIW, your 'cygcheck' results show that 'exim' is not running.  This is
consistent with your claim that the results you're seeing are causing 'exim'
to fail to start.  Perhaps it would also be worthwhile to detail your
installation and configuration steps for 'exim' and the message that you
get when you attempt to start it with 'cygrunsrv'.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746

--
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/



Re: Complex.h file

2005-11-19 Thread Tony Richardson
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/



Re: vsftpd on cygwin

2005-11-19 Thread Jason Tishler
Yao,

See the following:

http://cygwin.com/acronyms#PPIOSPE

On Tue, Nov 15, 2005 at 12:48:20PM +0800, Yao G. Zhan wrote:
> I read the mailing list at cygwin.com and found that you made vsftpd
> working on cygwin.
> 
> However, when I tried to compile vsftpd source 2.0.3 downloaded from
> ftp://vsftpd.beasts.org/users/cevans/, it turned out to fail because
> lack of ipv6 support in cygwin.
> 
> Would you please figure it out how I can make it run? Can I disable
> ipv6 when compiling?

Sorry, but I haven't tried to compile vsftpd since 1.1.3, so I can't
really help without actually trying to compile 2.0.3 myself.

Why don't you use proftpd 1.2.10 instead, since it is part of the
standard Cygwin distribution?

> Thank you very much!

You are welcome.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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/



Re: Complex.h file

2005-11-19 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John Coppens wrote:
[snip]
> complex.h is not found.
> 
> A search in the cygwin tree reveals:
> 
> /usr/lib/i686-pc-mingw32/3.4.4/include/c++/backward/complex.h
> /usr/lib/i686-pc-cygwin/3.4.4/include/c++/backward/complex.h
> /usr/include/mingw/complex.h

Easy way out: add the -mno-cygwin parameter to CFLAGS.  That means "use mingw
headers and libraries" to produce a windows only executable (no cygwin dll
dependencies); this will work if the package you are compiling doesn't depend on
libraries not supplied by mingw.

> But, as I use gcc, and normal c (not c++), I suspect none of these are
> seen. On my Linux machine, all compiles well (same gcc version).
> 
> 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
[snip]

I'm not sure about the standard, but complex is defined in libstdc++ wich is c++
not c, and I don't have it in gcc 3.4.4 only on 4.0.2 (not distributed with
Cygwin yet).

HTH
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkN/ZEkACgkQL3NNweKTRgzTxgCfey5vL7UQT+P4UbbWDZvOXbvQ
goQAoP4+jnaFomRuiqyWvPfpm0HXs6Ox
=u521
-END PGP SIGNATURE-


--
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/



Complex.h file

2005-11-19 Thread John Coppens
Hi guys & gals.

I'm tying to port a program of mine to cygwin, and have the following
problem:

complex.h is not found.

A search in the cygwin tree reveals:

/usr/lib/i686-pc-mingw32/3.4.4/include/c++/backward/complex.h
/usr/lib/i686-pc-cygwin/3.4.4/include/c++/backward/complex.h
/usr/include/mingw/complex.h

But, as I use gcc, and normal c (not c++), I suspect none of these are
seen. On my Linux machine, all compiles well (same gcc version).

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

Can someone help here?
Thanks,
John

PS: The program I'm trying to compile is linsmith, available at
http://sf.net/projects/linsmith

--
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/



[ANNOUNCEMENT] Updated: file-4.16-1

2005-11-19 Thread Corinna Vinschen
I've updated the version of file to 4.16-1.

This version is an update to the official version 4.16, mainly improved
magic value recognition and bug fixes.

The necessary Cygwin specific patches are now included upstream so this
version is entirely build from the vanilla sources.


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available   
starting at this URL.

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat, Inc.

--
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/