Behavior of ifstream::read() in g++

2006-10-14 Thread Alex Vinokur
This program has different behavior in
* g++ 3.4.4 (Cygwin)
* gpp 4.0.1 *Djgpp)
* Microsoft C++ 13.00.9466

--- foo.cpp --
#include 
#include 
#include 
using namespace std;

#define BUFFER_SIZE  1500
#define INPUT_FILE_NAME  "in.txt"

void foo ()
{
char cbuffer[BUFFER_SIZE];
ifstream fs (INPUT_FILE_NAME);

  fs.clear();
  fs.seekg (0, ios::beg);

  while (!fs.eof())
  {
fs.read (cbuffer, sizeof(cbuffer));
cout << "rdstate() = 0x" << hex << fs.rdstate() << dec << "; gcount() = " 
<< fs.gcount() << endl;
  }
  cout << "rdstate() = 0x" << hex << fs.rdstate() << dec << endl;
}

int main ()
{
  foo ();
  return 0;
}

--


Test input file can be seen at
http://groups.google.com/group/test-av/msg/0c4d3da487594ab7


Output for g++ (Cygwin)

rdstate() = 0x6; gcount() = 1499
rdstate() = 0x6
---
It seems that behavior of g++ is wrong here.


Output for gpp (Djgpp)
---
rdstate() = 0x0; gcount() = 1500
rdstate() = 0x0; gcount() = 1500
rdstate() = 0x0; gcount() = 1500
rdstate() = 0x0; gcount() = 1500
rdstate() = 0x0; gcount() = 1500
rdstate() = 0x6; gcount() = 1071
rdstate() = 0x6
---


Output for Microsoft C++
---
rdstate() = 0x0; gcount() = 1500
rdstate() = 0x0; gcount() = 1500
rdstate() = 0x0; gcount() = 1500
rdstate() = 0x0; gcount() = 1500
rdstate() = 0x0; gcount() = 1500
rdstate() = 0x3; gcount() = 1071
rdstate() = 0x3
---

 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Source C-code for shell (bash) that processes an asterisk as a special symbol

2006-06-01 Thread Alex Vinokur

"Christopher Faylor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

[snip]

> However, just *use* the function like you would any other function.
> There is no need to locate the source code to use it.  You don't need
> open.c to use open.
>
[snip]

I need the glob.c source to do its porting to other OS.

Thanks,
-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Source C-code for shell (bash) that processes an asterisk as a special symbol

2006-06-01 Thread Alex Vinokur

"Eric Blake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > Thanks.
> > Also
> > http://www.devdaily.com/scw/c/cygwin/src/newlib/libc/sys/linux/include/glob.h.sh
> > tml
> >
> > But I didn't fint out glob.c on Cygwin.
>
> Then you didn't look hard enough.  Cygwin sources are kept in CVS,
> and you can browse CVS online.
> http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/glob.c?cvsroot=src
>
> -- 
> Eric Blake
>

Thank you.

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Source C-code for shell (bash) that processes an asterisk as a special symbol

2006-05-27 Thread Alex Vinokur

"Christopher Faylor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> On Fri, May 26, 2006 at 12:39:38PM +0300, Alex Vinokur wrote:
[snip]
> >Is there any free source C-code on Cygwin that implements "wildcard 
> >processing"?
>
> Just the same function that exist on linux:  glob().

[snip]

I didn't find out free source glob.c via Google.
P.S. I don't have Linux.


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Source C-code for shell (bash) that processes an asterisk as a special symbol

2006-05-27 Thread Alex Vinokur

"Eric Blake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > Is there any free source C-code on Cygwin that implements "wildcard 
> > processing"?
>
> Yes - POSIX requires, and cygwin1.dll provides, glob().
> http://www.opengroup.org/onlinepubs/009695399/functions/glob.html
>
> -- 
> Eric Blake
>

Thanks.
Also
http://www.devdaily.com/scw/c/cygwin/src/newlib/libc/sys/linux/include/glob.h.shtml

But I didn't fint out glob.c on Cygwin.


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Source C-code for shell (bash) that processes an asterisk as a special symbol

2006-05-27 Thread Alex Vinokur

"Igor Peshansky" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> On Thu, 25 May 2006, Alex Vinokur wrote:
>
> > We have mini-shell that doesn't process an asterisk '*' as a special
> > symbol. Is there any free source C-code on Cygwin that implements that
> > processing?
>
> If I understand your question correctly, there are at least 4 different
> sources for shells, plus various other programs (e.g., make).  What you're
> looking for is called "wildcard processing".

Is there any free source C-code on Cygwin that implements "wildcard processing"?

> Beware of licensing issues, though.
[snip]

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn






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



Source C-code for shell (bash) that processes an asterisk as a special symbol

2006-05-25 Thread Alex Vinokur
We have mini-shell that doesn't process an asterisk '*' as a special symbol.
Is there any free source C-code on Cygwin that implements that processing?

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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 started with Doxygen

2006-05-12 Thread Alex Vinokur

"Dave Korn" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> On 12 May 2006 16:37, Alex Vinokur wrote:
>
> > I have installed Doxygen, performed
> > $ doxygen -g
> > $ doxygen
> >
> > Some files was created.
> >
> > How can I use Doxygen with a C++ program?
>
>   Same way as you do with a C program.

I never worked with Doxygen.

[snip]


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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



Getting started with Doxygen

2006-05-12 Thread Alex Vinokur
I have installed Doxygen, performed
$ doxygen -g
$ doxygen

Some files was created.

How can I use Doxygen with a C++ program?

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn







--
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: Big thanks to Corinna and Chris

2006-02-17 Thread Alex Vinokur

"Corinna Vinschen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

[snip]
> Thanks, nice to read somebody is happy with Cygwin :-)
[snip]

Also I am happy with Cygwin.

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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



Utility to get IP address of the machine

2006-01-03 Thread Alex Vinokur
What is Cygwin utility to get IP address of the machine?

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Starting with Cygwin NFS Server

2005-12-11 Thread Alex Vinokur

"Robb, Sam" wrote in message news:[EMAIL PROTECTED]
[snip]

> The doc you mentioned above is the README for the original
> nfs-server package.  There is a cygwin-specific README for
> the nfs-server package as well, under:

>  /usr/share/doc/Cygwin/nfs-server-2.3-3.README

[snip]

Thanks.

Perhaps the foloowing question is off-topic.

--

NFS Client runs on UNIX.
Cygwin NFS Server runs on Windows.


How to specify the device (Windows-directory/folder) to be mounted on
mount point (UNIX-directory)?


The problem is how to set the pathname of the exported file system on
Windows NFS Server.


For UNIX NFS Server the pathname might be set as it follows
:/dir1/dir2


For instance, Windows machine contains folder C:\folder1\folder2 that
is to be exported.
How to set the pathname? What to do with "C:"?


Should
:C:\folder1\folder2
work?


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn






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



Starting with Cygwin NFS Server

2005-12-02 Thread Alex Vinokur
I have downloaded and installed Cygwin NFS Server.
What should I begin from to start to work with Cygwin NFS Server on Windows 
2000/XP?

I read /usr/share/doc/nfs-server-2.3/README, but I would like to get more 
specific information about needed stages of working with
that NFS Server.

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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



Posting to the gmane.os.cygwin not via Gmane

2005-12-02 Thread Alex Vinokur
I usually send messages to the group via Gmane.

How to post them directly to this mailing list?


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Signals, parent & children processes

2005-12-02 Thread Alex Vinokur

"Alex Vinokur" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
> ---
> CYGWIN_NT-5.0 1.5.18
> Windows 2000
> --
>
>
> /* - */
> void sigINT_handler1 (int sig_i)
> {
>   fprintf (stderr, "sigINT_handler1: pid#%d ignores a signal %d\n", getpid(), 
> sig_i);
>   signal (SIGINT, sigINT_handler1);
> }
>
> void sigINT_handler2 (int sig_i)
> {
>   fprintf (stderr, "sigINT_handler2: pid#%d ignores a signal %d\n", getpid(), 
> sig_i);
>   signal (SIGINT, sigINT_handler2);
> }
>
> int main()
> // fragments of code
> {
>   sigINT_handler1 (SIGINT);
>
>   if (fork() > 0)  // Parent
>   {
> // Stuff
> waitpid (pid, &status, 0);
>   }
>   else  // Child
>   {
> sigINT_handler2 (SIGINT);
> execvp ();
>   }
> }
>
> Parent catchs SIGINT via sigINT_handler1,
> but Child doesn't catch SIGINT via sigINT_handler2.
>
> How can Child catch SIGINT with its own signal handler?
>
>
It seems that code below does that..

// -
int foreground_flag = 1; /* 1 - foreground, 0 - backgroung */

int main ()
{

  while (1)
  {
signal (SIGINT, SIG_IGN);

pid = fork();

if (pid < 0)  /* Error while fork */
{
  perror ("Unable to execute fork");
  continue;
}

if (pid > 0)  /* Parent */
{
  if (foreground_flag == 1) waitpid (pid, &status, 0);
}
    else  /* Child */
{
  if (foreground_flag) signal (SIGINT, SIG_DFL);}
  else signal (SIGINT, SIG_IGN);

  execvp ();
}

  }

  return 0;
}
// -



-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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



Signals, parent & children processes

2005-12-02 Thread Alex Vinokur

---
CYGWIN_NT-5.0 1.5.18
Windows 2000
--


/* - */
void sigINT_handler1 (int sig_i)
{
  fprintf (stderr, "sigINT_handler1: pid#%d ignores a signal %d\n", getpid(), 
sig_i);
  signal (SIGINT, sigINT_handler1);
}

void sigINT_handler2 (int sig_i)
{
  fprintf (stderr, "sigINT_handler2: pid#%d ignores a signal %d\n", getpid(), 
sig_i);
  signal (SIGINT, sigINT_handler2);
}

int main()
// fragments of code
{
  sigINT_handler1 (SIGINT);

  if (fork() > 0)  // Parent
  {
// Stuff
waitpid (pid, &status, 0);
  }
  else  // Child
  {
sigINT_handler2 (SIGINT);
execvp ();
  }
}

Parent catchs SIGINT via sigINT_handler1,
but Child doesn't catch SIGINT via sigINT_handler2.

How can Child catch SIGINT with its own signal handler?


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn






--
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: To continue file name

2005-11-08 Thread Alex Vinokur

"Dave Korn" wrote in message news:[EMAIL PROTECTED]
> Alex Vinokur wrote:
> > "Dave Korn" wrote in message
> > news:[EMAIL PROTECTED]
> >> Alex Vinokur wrote:
> >>> Hi,
> >>>
> >>> For instance, directory contains files abcd, xyz, f123.
> >>> For instance, I print 'a' and don't want to print 'bcd'.
> >>> How can Cygwin continue file name automatically.
> >>
> >>   In bash shell, you just press TAB to complete the filename. [snip]
> >
> > I tried to do that. Doesn't work.
>
>   It does.

Yes, it works fine with TAB.

[snip]

Thanks.

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn






--
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: To continue file name

2005-11-07 Thread Alex Vinokur

"Dave Korn" wrote in message news:[EMAIL PROTECTED]
> Alex Vinokur wrote:
> > Hi,
> >
> > For instance, directory contains files abcd, xyz, f123.
> > For instance, I print 'a' and don't want to print 'bcd'.
> > How can Cygwin continue file name automatically.
>
>   In bash shell, you just press TAB to complete the filename.
[snip]

I tried to do that. Doesn't work.
Should one set some Cygwin-variable?

Alex Vinokur





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



To continue file name

2005-11-07 Thread Alex Vinokur
Hi,

For instance, directory contains files abcd, xyz, f123.
For instance, I print 'a' and don't want to print 'bcd'.
How can Cygwin continue file name automatically.

Thanks,
Alex Vinokur






--
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: Uninstall some category

2005-10-10 Thread Alex Vinokur

"Alex Vinokur" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
[snip]
> Not it works fine.
Of course, it should be:
"Now it works fine".
[snip]

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn







--
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: Uninstall some category

2005-10-09 Thread Alex Vinokur

"Igor Pechtchanski" wrote in message news:[EMAIL PROTECTED]
> On Sun, 9 Oct 2005, Alex Vinokur wrote:
>
> > "Larry Hall" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> <http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.
>
> > > At 03:13 PM 10/9/2005, you wrote:
> > >
> > > >"Larry Hall" wrote in message news:[EMAIL PROTECTED]
> > > >> At 01:43 PM 10/9/2005, you wrote:
> > > >> >I wont to uninstall some category, for instance, "Games".
> > > >> >What should one do?
> > > >>
> > > >> Run 'setup.exe'.  Click "Next" until one gets to the "Select
> > > >> Package" page.  Click on "Default" for "Games" until it changes to
> > > >> "Uninstall". Click "Next".  Continue as one would for any other use
> > > >> of 'setup.exe'.
> > > >
> > > >[snip]
> > > >
> > > >OK. But other categories can contain some packages with new versions
> > > >of some utilities. If I don't want to update those utilities, should
> > > >I set "Keep" in *each* utility?
> > >
> > > You should be able to select the "Keep" radio button above the list of
> > > packages to do that
> >
> > This is the point. Here are list of options for categories (while
> > "Download without installing"):
> > * Default
> > * Install
> > * Reinstall
> > * Uninstall
> > So, the "Keep" option is missing.
>
> Note that Larry did not say 'the "Keep" option for other categories' -- he
> said 'the "Keep" radio button *above* the list of packages'.  Look
> carefully, you'll see it there (along with "Prev", "Curr", and "Exp").
> Selecting "Keep" will not install any updates automatically.
>
> > > but your option is also viable, though perhaps more tedious, depending
> > > on the number of packages you have installed.
> >
> > Of course, I don't want to that for each relevant utility.
>
> Obviously -- that's why the "Keep" mode was introduced in the first place.
[snip]

Not it works fine.

Thanks.

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn






--
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: Uninstall some category

2005-10-09 Thread Alex Vinokur

"Larry Hall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> At 03:13 PM 10/9/2005, you wrote:
>
> >"Larry Hall" wrote in message news:[EMAIL PROTECTED]
> >> At 01:43 PM 10/9/2005, you wrote:
> >> >I wont to uninstall some category, for instance, "Games".
> >> >What should one do?
> >>
> >>
> >> Run 'setup.exe'.  Click "Next" until one gets to the "Select Package"
> >> page.  Click on "Default" for "Games" until it changes to "Uninstall".
> >> Click "Next".  Continue as one would for any other use of 'setup.exe'.
> >>
> >
> >[snip]
> >
> >OK. But other categories can contain some packages with new versions of some 
> >utilities.
> >If I don't want to update those utilities, should I set "Keep" in *each* 
> >utility?
>
>
> You should be able to select the "Keep" radio button above the list of
> packages to do that
This is the point. Here are list of options for categories (while "Download 
without installing"):
* Default
* Install
* Reinstall
* Uninstall
So, the "Keep" option is missing.

> but your option is also viable, though perhaps more
> tedious, depending on the number of packages you have installed.
Of course, I don't want to that for each relevant utility.

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Uninstall some category

2005-10-09 Thread Alex Vinokur

"Larry Hall" wrote in message news:[EMAIL PROTECTED]
> At 01:43 PM 10/9/2005, you wrote:
> >I wont to uninstall some category, for instance, "Games".
> >What should one do?
>
>
> Run 'setup.exe'.  Click "Next" until one gets to the "Select Package"
> page.  Click on "Default" for "Games" until it changes to "Uninstall".
> Click "Next".  Continue as one would for any other use of 'setup.exe'.
>

[snip]

OK. But other categories can contain some packages with new versions of some 
utilities.
If I don't want to update those utilities, should I set "Keep" in *each* 
utility?


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn






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



Uninstall some category

2005-10-09 Thread Alex Vinokur
I wont to uninstall some category, for instance, "Games".
What should one do?

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn







--
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: Problem with upgrading from g++ 3.3.3 to g++ 3.4.4

2005-08-08 Thread Alex Vinokur

"Larry Hall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> At 03:03 PM 8/8/2005, you wrote:
> >I have upgraded g++ from g++ 3.3.3 to g++ 3.4.4
> >
> >No I have a problem.
> >
> >$ g++ foo.cpp
> >/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot 
> >find
> > -luser32
>
>
> 
>
>
> >What is wrong?
>
>
> As the FAQ entry
>
> What packages should I download? Where are 'make', 'gcc', 'vi', etc?
> <http://cygwin.com/faq/faq-nochunks.html#faq.setup.what-packages>
>
> says:
>
> <http://cygwin.com/cgi-bin2/package-grep.cgi?grep=libuser32.a>
>
[snip]

Thanks.

Now it works OK.


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Problem with upgrading from g++ 3.3.3 to g++ 3.4.4

2005-08-08 Thread Alex Vinokur

"Alex Vinokur" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
[snip]
> No I have a problem.
Now I have a problem
[snip]


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn






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



Problem with upgrading from g++ 3.3.3 to g++ 3.4.4

2005-08-08 Thread Alex Vinokur
I have upgraded g++ from g++ 3.3.3 to g++ 3.4.4

No I have a problem.

$ g++ foo.cpp
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
 -luser32
collect2: ld returned 1 exit status

Info:
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with:
/gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose --prefix=/usr --exec-prefix=/usr 
--sysconfdir=/etc --libdir=/usr/lib --libexecdir=/us
r/lib --mandir=/usr/share/man --infodir=/usr/share/info 
--enable-languages=c,ada,c++,d,f77,java,objc --enable-nls --without-included
-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj 
--disable-java-awt --with-system-zlib --enable-interpret
er --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm 
--disable-win32-registry --enable-sjlj-exceptions --enable-h
ash-synchronization --enable-libstdcxx-debug : (reconfigured)
Thread model: posix
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)

$ uname -a
CYGWIN_NT-5.0  1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown 
unknown Cygwin


What is wrong?

Thanks,

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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



g++ & rand() in Cygwin

2005-03-11 Thread Alex Vinokur
-- foo.cpp --
#include 
#include 
using namespace std;
int main ()
{
  cout << rand() << endl;
  cout << rand() << endl;
  return 0;
}
-


// g++ version 3.3.3 (cygwin special)

$ g++ foo.cpp

The program below generates the following output:
---
0
1481765933
---

First pseuso-random number is 0.

Is it by purpose?

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn




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



[C++ : Comparative performance] Copying files: input to output

2005-02-14 Thread Alex Vinokur

// ===
// C/C++ Program Performance Measurement
// ---
// Simple C/C++ Perfometer: Copying files (Version CF-3.0)
// ===


Tests have been performed for GNU g++/gpp compiler in
* Cygwin,
* Mingw32 interface,
* DJGPP


Links:
--
http://thread.gmane.org/gmane.comp.lang.c++.perfometer/89

http://permalink.gmane.org/gmane.comp.lang.c++.perfometer/93
http://permalink.gmane.org/gmane.comp.lang.c++.perfometer/89

http://groups-beta.google.com/group/perfo/browse_frm/thread/380ffe8e8143bb6c/e08f36ebdf45b4f3



// %
//
//Testsuites
//--
//C-01  : C-Functions getc() and putc()
//C-02  : C-Functions fgetc() and fputc()
//C-03  : C-Functions fread() and fwrite() - with const size buffer
//C-04  : C-Functions fread() and fwrite() - with max size buffer
//unix_C_05 : UNIX system call mmap // For Cygwin only
//CPP-01: istream::operator>> and ostream::operator<<
//CPP-02: streambuf::sbumpc() and streambuf::sputc()
//CPP-03: streambuf::sbumpc() and ostream::operator<<
//CPP-04: ifstream::rdbuf(), ofstream::rdbuf() and ostream::operator<<
//CPP-05: istream::read() and ostream::write() - with const size buffer
//CPP-06: istream::read() and ostream::write(), std::ostringstream, 
ostream::operator<< - with const buffer
//CPP-07: istream::readsome() and ostream::write() - with const size 
buffer
//CPP-08: istream::read() and ostream::write() - with max size buffer
//CPP-09: std::getline, std::ostringstream, ostream::operator<<
//CPP-10: istream::getline, std::ostringstream, ostream::operator<<
//CPP-11: istream::get(char) and ostream::put
//CPP-12: istream::get(char*, streamsize) , ostream::operator<< - with 
const size buffer
//CPP-13: istream::get(streambuf&)  and std::streambuf, 
ostream::operator<<
//CPP-14: std::istream_iterator, std::ostream_iterator and std::copy
//CPP-15: std::istreambuf_iterator, std::ostreambuf_iterator and 
std::copy
//CPP-16: std::istreambuf_iterator, std::ostreambuf_iterator and 
std::transform
//CPP-17: std::vector and std::copy
//
// %%%%%



-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn







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



Something like "sendfile - transfer data between file descriptors"

2005-02-13 Thread Alex Vinokur

Does Cygwin contain something like
"sendfile - transfer data between file descriptors"
http://www.rt.com/man/sendfile.2.html ?

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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



Information of the qsort function from stdlib.h

2005-01-01 Thread Alex Vinokur
It seems that there is no information of the qsort function from stdlib.h.

$ uname -a
CYGWIN_NT-5.0  1.5.12(0.116/4/2) 2004-11-10 08:34 i686 unknown 
unknown Cygwin

$ man qsort
No manual entry for qsort

$ info qsort > zzz
info: No menu item `qsort' in node `(dir)Top'.

$ info libc | grep sort
info: Writing node (*manpages*)libc...
info: Done.



-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn




--
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: Building LLVM and the GCC front-end under Cygwin

2004-12-28 Thread Alex Vinokur

"Christopher Faylor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> On Tue, Dec 28, 2004 at 05:30:23PM +0200, Alex Vinokur wrote:
> >I would like to build LLVM and the GCC front-end under Cygwin.
> >
> >http://llvm.cs.uiuc.edu/docs/CFEBuildInstrs.html#cygwin>
> >Some versions of Cygwin utilize an experimental version of GNU binutils that 
> >will cause the GNU ld linker to fail an assertion
when
> >linking components of the libstdc++. It is recommended that you replace the 
> >entire binutils package with version 2.15 such that
> >"ld --version" responds with
> >
> >GNU ld version 2.15
> >not with:
> >
> >GNU ld version 2.15.91 20040725
> >
> >
> >Here is ld version
> >$ ld --version
> >GNU ld version 2.15.91 20040725
> >[---omitted---]
> >
> >How to get ld version 2.15 instead version 2.15.91 20040725?
>
> Why are you asking this list when another source told you to do something?

Another source told me what to do.
Here I am asking how to do.

I am am asking my question here because here (on Cygwin) I got 'ld'.

> Obviously, we only support what is in the cygwin release.
>
> Regardless, you can build your own version.
>
> If that is unacceptable, then ask the people at llvm.cs.uiuc.edu for a
> version.
>


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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



Building LLVM and the GCC front-end under Cygwin

2004-12-28 Thread Alex Vinokur
I would like to build LLVM and the GCC front-end under Cygwin.

http://llvm.cs.uiuc.edu/docs/CFEBuildInstrs.html#cygwin>
Some versions of Cygwin utilize an experimental version of GNU binutils that 
will cause the GNU ld linker to fail an assertion when
linking components of the libstdc++. It is recommended that you replace the 
entire binutils package with version 2.15 such that
"ld --version" responds with

GNU ld version 2.15
not with:

GNU ld version 2.15.91 20040725


Here is ld version
$ ld --version
GNU ld version 2.15.91 20040725
[---omitted---]

How to get ld version 2.15 instead version 2.15.91 20040725?


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn








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



How to redirect "Segmentation fault (core dumped)" to err.txt?

2004-12-05 Thread Alex Vinokur
$ cygcheck -c cygwin bash
Cygwin Package Information
Package  VersionStatus
bash 2.05b-16   OK
cygwin   1.5.11-1   OK

$ a 2> err.txt
Segmentation fault (core dumped)

Why didn't "Segmentation fault (core dumped)" redirected to err.txt?
How to redirect "Segmentation fault (core dumped)" to err.txt?

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: gmp.h and 'g++ -mno-cygwin'

2004-11-22 Thread Alex Vinokur

"Gerrit P. Haase" wrote in message news:[EMAIL PROTECTED]
> Alex Vinokur wrote:
> > Here is file bar.cpp.
> >
> > -- bar.cpp --
> > #include 
> > int main ()
> > {
> >   return 0;
> > }
> > -
> >
> > -- Compilation --
> >
> > $ cygcheck -c cygwin gmp gcc
> > Cygwin Package Information
> > Package  VersionStatus
> > cygwin   1.5.11-1   OK
> > gcc  3.3.3-3OK
> > gmp  4.1.4-2OK
> >
> >
> > $ g++ bar.cpp -lgmp
>
> Fine.
>
>
> > $ g++ -mno-cygwin bar.cpp -lgmp
> > bar.cpp:1:17: gmp.h: No such file or directory
>
> You need a MinGW / Windows version of libgmp for this.

Where can I get it?

>
>
> > -
> >
> > Is it possible to work with gmp in MinGW environment?
> >
>
> It seems to be possible to build a MinGW version, there are also some
> instructions and binaries here: http://www.cs.nyu.edu/exact/core/gmp/
>
[snip]


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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



gmp.h and 'g++ -mno-cygwin'

2004-11-22 Thread Alex Vinokur
Here is file bar.cpp.

-- bar.cpp --
#include 
int main ()
{
  return 0;
}
-

-- Compilation --

$ cygcheck -c cygwin gmp gcc
Cygwin Package Information
Package  VersionStatus
cygwin   1.5.11-1   OK
gcc  3.3.3-3OK
gmp  4.1.4-2OK


$ g++ bar.cpp -lgmp

$ g++ -mno-cygwin bar.cpp -lgmp
bar.cpp:1:17: gmp.h: No such file or directory

-

Is it possible to work with gmp in MinGW environment?

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: xmlcatalog.exe - Unable To Locate DLL

2004-10-29 Thread Alex Vinokur

"Gerrit P. Haase" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Alex Vinokur wrote:
>
> >>>>>While installing I have got the following error message:
> >>Is xmlcatalog called here from a postinstall script?
> > How can I know that?
>
> Because you wrote "While installing" I thought you meant "while
> installing a package with setup.exe.
>
> I cannot see any problem in your cygcheck output and I don't know
> what you were actually doing as this error happens.
>
> What do I need to do to reproduce this problem?  What are you actually
> doing to reproduce it?
>
[snip]

I currently don't try to reproduce it because I don't feel that that disturb me.
If that disturb me, I will try reproduce this problem.

Thanks,

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn







--
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: startup problem // no longer works // profile not called

2004-10-29 Thread Alex Vinokur

"Igor Pechtchanski" wrote in message news:[EMAIL PROTECTED]
> On Thu, 28 Oct 2004, Alex Vinokur wrote:
[snip]
> > It seems that I got rid of problem "bash: kpsexpand: command not found".
>
> Great.  So it was simply a missing dependency problem.

I don't understand how the problem has been resolved.

>
> > However,
> > $ find /etc/postinstall -name \*.done | sed 's/\.done$//' | xargs cygcheck -f | 
> > uniq > postinstall.txt  // Attached
> > postinstall.txt  contains a lot of files. Is it correct?
>
> Sure it is.  The above command simply lists all the packages installed on
> your machine that have postinstall scripts -- nothing wrong with having
> them.  The reason I asked you to get this information initially was that
> because of your screwed up mounts the postinstall scripts may not have run
> properly, and reinstalling the packages was one way of getting them to
> re-run, so this showed which packages to reinstall.
[snip]

What do the postinstall scripts do?
Who (and when) invokes them?


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn







--
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: xmlcatalog.exe - Unable To Locate DLL

2004-10-29 Thread Alex Vinokur

"Gerrit P. Haase" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Alex Vinokur wrote:
>
> > "Gerrit P. Haase" wrote in message
> > news:[EMAIL PROTECTED]
> >> Alex Vinokur wrote:
> >>> While installing I have got the following error message:
> >>>
> >>> 
> >>> xmlcatalog.exe - Unable To Locate DLL
> >>> -
> >>> Dynamic link library cygz.dll could not be found in the specified
> >>> path
> >>> c:\cygwin\bin;.;c:\WINNT\system32;c:\WINNT\system;c:\WINNT
>
> >> Do you have cygz.dll in /usr/bin?
>
> > $ which -a cygz.dll
> > /usr/bin/cygz.dll
> > /bin/cygz.dll
> > /usr/bin/cygz.dll
>
> Is xmlcatalog called here from a postinstall script?

How can I know that?

>
> If so, which package calls xmlcatalog in the postinstall script?
>
> And what about the permissions of the DLL?

$ ls -l cygz.dll
-rwxr-xr-x1 Administ None62976 Oct 10 06:09 cygz.dll

[snip]


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn







--
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: startup problem // no longer works // profile not called

2004-10-28 Thread Alex Vinokur

"Igor Pechtchanski" wrote in message news:[EMAIL PROTECTED]
> On Tue, 26 Oct 2004, Alex Vinokur wrote:
>
> > "Igor Pechtchanski" wrote:
> >
> > > I have a feeling your postinstall scripts didn't run properly because
> > > of the screwed-up mounts. In fact, run
> > >
> > > find /etc/postinstall -name \*.done | sed 's/\.done$//' | xargs cygcheck -f | 
> > > uniq
> >
> > $ find /etc/postinstall -name \*.done | sed 's/\.done$//' | xargs cygcheck -f | 
> > uniq > zzz3.txt
> > // zzz3.txt is attached
> >
> > > Those are the packages that will likely benefit from a reinstall in your
> > > case.
>
> Ah, that explains your problem.  You have Lilypond installed, which
> requires teTeX, but you don't have teTeX installed.  It's usually a good
> idea to let setup.exe select the required packages -- if you unselect
> them, you should know *exactly* what you're doing.
>
> Please select "Reinstall" for all of the packages in your zzz3.txt file.
> If setup selects other packages for installation, let it.  Then try
> running cygwin.bat again.
> Igor

I did that.

It seems that I got rid of problem "bash: kpsexpand: command not found".

However,
$ find /etc/postinstall -name \*.done | sed 's/\.done$//' | xargs cygcheck -f | uniq > 
postinstall.txt  // Attached
postinstall.txt  contains a lot of files. Is it correct?


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn







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



xmlcatalog.exe - Unable To Locate DLL

2004-10-28 Thread Alex Vinokur
While installing I have got the following error message:


xmlcatalog.exe - Unable To Locate DLL
-
Dynamic link library cygz.dll could not be found in the specified path
c:\cygwin\bin;.;c:\WINNT\system32;c:\WINNT\system;c:\WINNT;c:\cygwin\bin;c:\cygwin\bin;
-

$ cygcheck -srv > cygcheck.txt   // Attached.


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: startup problem // no longer works // profile not called

2004-10-26 Thread Alex Vinokur

"Igor Pechtchanski" wrote in message news:[EMAIL PROTECTED]
[snip]
> Please select "Reinstall" for all of the packages in your zzz3.txt file.
[snip]

"Select Packages" has the following actions:
* Keep
* Retrieve
* Source
* Uninstall

I didn't find "Reinstall".


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Profile not called

2004-10-26 Thread Alex Vinokur

"Dave Korn" wrote in message news:[EMAIL PROTECTED]
> > -Original Message-
> > From: cygwin-owner On Behalf Of Alex Vinokur
> > Sent: 26 October 2004 06:08
>
> > "Dave Korn" wrote in message
> > news:[EMAIL PROTECTED]
> > [snip]
> > > Have you previously installed "For all users" and now
> > you're trying to install "Just for
> > > me", or perhaps vice-versa?
> > [snip]
> >
> > Where does one do that: "For all users" or "Just for me"?
>
>
>   Ever hear of a program called "setup.exe"?  You'll find it in there, in amongst
> the first few screens.  I guess if you haven't noticed it before, you probably
> haven't been changing it!
[snip]

Here are the first few screens.
news://news.mozilla.org/[EMAIL PROTECTED]
news://news.mozilla.org/[EMAIL PROTECTED]
news://news.mozilla.org/[EMAIL PROTECTED]
news://news.mozilla.org/[EMAIL PROTECTED]
news://news.mozilla.org/[EMAIL PROTECTED]

Where can I find "For all users" or "Just for me"?

Thanks,

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn






--
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: startup problem // no longer works // profile not called

2004-10-25 Thread Alex Vinokur

"Igor Pechtchanski" wrote in message news:[EMAIL PROTECTED]
> On Mon, 25 Oct 2004, Alex Vinokur wrote:
>
> > "Igor Pechtchanski" wrote in message news:[EMAIL PROTECTED]
> > > On Mon, 25 Oct 2004, Alex Vinokur wrote:
> > >
> > > > "Igor Pechtchanski" wrote:
> > > > [snip]
> > > > > 'mount' command, you can do something like
> > > > >
> > > > > mount -fst c:/cygwin /
> > > > > mount -fst c:/cygwin/bin /usr/bin
> > > > > mount -fst c:/cygwin/lib /usr/lib
> > > > >
> > > > [snip]
> > > >
> > > > There is some progress.
> > > > Thanks.
> > > >
> > > > After that I have all my aliases.
> > > > But here is what Cygwin concole shows.
> > > > --
> > > > bash: kpsexpand: command not found  // it is not mine
> > > > Hello from Cygwin   // it is mine
> > > > --
> > >
> > > Try 'bash --login -x -c "echo Hi" 2>&1 | grep kpsexpand'.  This should
> > > print out the line that invokes kpsexpand.  You can then use "less"
> > > instead of "grep" to find the relevant login script sequence and figure
> > > out which script contains that line.
> >
> > $ bash --login -x -c "echo Hi" 2>&1 | grep kpsexpand
>
> Hmm, so this message doesn't show up when you do "bash --login" from a
> bash shell?  Interesting...
>
> Try 'bash --login -i -c "echo Hi"'.

bash: kpsexpand: command not found
Hello from Cygwin

$ bash --login -i -c "echo Hi"
Hello from Cygwin
Hi

> If that produces the "missing
> kpsexpand" error, pipe both stdout and stderr of that command through
> "grep kpsexpand" (i.e.,
>
> bash --login -i -c "echo Hi" 2>&1 | grep kpsexpand

$ bash --login -i -c "echo Hi" 2>&1 | grep kpsexpand
// No output

>
> ).  If not, see what's different in the way your "cygwin.bat" invokes
> bash.

Here is my cygwin.bat
-
@echo off

C:
chdir C:\cygwin\bin

bash --login -i
-

>
> > $ bash --login -x -c "echo Hi" 2>&1 | less kpsexpand
> > kpsexpand: No such file or directory
>
> Umm, I meant
>
> bash --login -x -c "echo Hi" 2>&1 | less

bash --login -x -c "echo Hi" 2>&1 | less > zzz2.txt
// zzz2.txt is attached

>
> Sorry if this was unclear.
>
> > > > bash-2.05b$ cygcheck -srv > cygcheck.out// cygcheck.out is attached
> > >
> > > FWIW, this sounds like something one of the tetex packages would do.
> > > Is your tetex misconfigured somehow?
> >
> > I don't know.
> >
> > > Perhaps Jan could chime in.
>
> Reinstall it and see if you still get the error.

I reinstalled it and got the error.
See news://news.gmane.org/[EMAIL PROTECTED]


> I have a feeling your
> postinstall scripts didn't run properly because of the screwed-up mounts.
> In fact, run
>
> find /etc/postinstall -name \*.done | sed 's/\.done$//' | xargs cygcheck -f | uniq
$ find /etc/postinstall -name \*.done | sed 's/\.done$//' | xargs cygcheck -f | uniq > 
zzz3.txt
// zzz3.txt is attached

>
> Those are the packages that will likely benefit from a reinstall in your
> case.
[snip]


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn



begin 666 zzz2.txt
M*R!0051(/2]U6=D6=D6=D6=D2UR;V]T+W-Y6=D6=D
M6=D6=D6=D&UF+VUI:W1E
M>"]B:6XZ+V-Y9V1R:79E+V,O5TE.3E0O6=D2UR;V]T+W-Y6=D6=D6=D6=D#$Q+6)A7-T96TS,CHO8WEG9')I=F4O8R]724Y.5#HO8WEG9')I
M=F4O8R]724Y.5"]3>7-T96TS,B]78F5M.B]U6=D6=D6=D6=D6=D6=D6=D2UR;V]T+W-Y6=D6=D6=D6=D7!O;F0M<')O9FEL92YS:" G72<-"[EMAIL PROTECTED] O971C+W!R;V9I;&4N
M9"]L:6QY<&]N9"UP7!O;F0O,BXR+C4-"BLK*R!E8VAO("=[+W5S'!O<[EMAIL PROTECTED]&]R9RUX,3$M9&5V96PN&]R9RUX,3$M9&5V96PN<[EMAIL PROTECTED]"BLK('1E&]R9RUX,3$M;6%N+7!A9V5S+G-H#0HK*R!E>'!O<[EMAIL PROTECTED]
M'!O<[EMAIL PROTECTED]
M15]-3T1%/75N:[EMAIL PROTECTED]"[EMAIL PROTECTED]/75N:[EMAIL PROTECTED]"[EMAIL 
PROTECTED];W)T("=04S$]
M7%M<,#,S73 [7'=<,# W#0I<,#,S6S,R;5Q=7'5 7&@@7%M<,#,S6S,S;5QW
M7# S,ULP;5Q=#0HD("<-"[EMAIL PROTECTED],Q/5Q;7# S,UTP.UQW7# P-PT*7# S,ULS
M,FU<75QU0%QH(%Q;7# S,ULS,VU<=UPP,S-;,&U<70T*)"

Re: Profile not called

2004-10-25 Thread Alex Vinokur

"Larry Hall" wrote in message news:[EMAIL PROTECTED]
[snip]
> So you mean that when you ran 'setup.exe' and got to the page titled
> "Cygwin Setup - Choose Installation Directory", your "Root Directory"
> read as 'C:\Cygwin\bin' and you did not change that to
> 'C:\cygwin_etc\_download\001'?
[snip]

I myself changed nothing.

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Profile not called

2004-10-25 Thread Alex Vinokur

"Dave Korn" wrote in message news:[EMAIL PROTECTED]
[snip]
> Have you previously installed "For all users" and now you're trying to install "Just 
> for
> me", or perhaps vice-versa?
[snip]

Where does one do that: "For all users" or "Just for me"?

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn






--
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: Profile not called

2004-10-25 Thread Alex Vinokur

"Larry Hall" wrote in message news:[EMAIL PROTECTED]
> At 12:03 PM 10/25/2004, you wrote:
>
> >"Larry Hall" wrote in message news:[EMAIL PROTECTED]
> >[snip]
> >> And how would you check to find out where 'kpsexpand' came from?  Visit
> >> <http://cygwin.com/packages/>, enter 'kpsexpand', and press enter.  Presto!
> >> You now know that 'kpsexpand' comes from the 'tetex-bin' package.  You
> >> have that installed, so you can either look to see why that's not being found
> >> for you anymore or you can just rerun 'setup.exe' and reinstall it.  The
> >> choice is yours.
> >[snip]
> >
> >I have reinstalled.
> >
> >The original problem has returned.
> >See news://news.gmane.org/[EMAIL PROTECTED]
> >
> >bash-2.05b$ cygcheck -srv > cygcheck.out 2>&1
> >
> >File cygcheck.out is attached.
> >
>
>
> Well, it looks like your mounts are wrong again.  They now all point to
> 'C:\cygwin_etc\_download\001' while your path points to 'C:\cygwin\bin'.
> Perhaps during the reinstall you changed your installation path (again)?

I did nothing with my installation path.

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn








--
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: startup problem // no longer works // profile not called

2004-10-25 Thread Alex Vinokur

"Igor Pechtchanski" wrote in message news:[EMAIL PROTECTED]
> On Mon, 25 Oct 2004, Alex Vinokur wrote:
>
> > "Igor Pechtchanski" wrote:
> > [snip]
> > > 'mount' command, you can do something like
> > >
> > > mount -fst c:/cygwin /
> > > mount -fst c:/cygwin/bin /usr/bin
> > > mount -fst c:/cygwin/lib /usr/lib
> > >
> > [snip]
> >
> > There is some progress.
> > Thanks.
> >
> > After that I have all my aliases.
> > But here is what Cygwin concole shows.
> > --
> > bash: kpsexpand: command not found  // it is not mine
> > Hello from Cygwin   // it is mine
> > --
>
> Try 'bash --login -x -c "echo Hi" 2>&1 | grep kpsexpand'.  This should
> print out the line that invokes kpsexpand.  You can then use "less"
> instead of "grep" to find the relevant login script sequence and figure
> out which script contains that line.

$ bash --login -x -c "echo Hi" 2>&1 | grep kpsexpand

$ bash --login -x -c "echo Hi" 2>&1 | less kpsexpand
kpsexpand: No such file or directory

>
> > bash-2.05b$ cygcheck -srv > cygcheck.out// cygcheck.out is attached
>
> FWIW, this sounds like something one of the tetex packages would do.  Is
> your tetex misconfigured somehow?

I don't know.

> Perhaps Jan could chime in.

[snip]


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Profile not called

2004-10-25 Thread Alex Vinokur

"Larry Hall" wrote in message news:[EMAIL PROTECTED]
[snip]
> At 04:21 AM 10/25/2004, you wrote:
> I'll take your word for it but I still think you should heed Brian's advice.
> Looking at your cygcheck output, one can see that you have Cygwin executables
> like 'bash.exe', 'cat.exe', and 'gcc.exe' in 'C:\cygwin\bin\', to name a few.
> This is in direct conflict with your mounts.  From your mounts, I'm led to
> conclude that you installed Cygwin into the directory you downloaded Cygwin
> to, which has historically caused problems.  It's clear that at least at some
> point in the past, you also installed Cygwin into 'C:\cygwin\bin\'.  So I'd
> recommend looking at this conflict and getting it resolved.  Brian's
> suggestion may be all that's necessary to set this straight.
[snip]

Thanks. I did that. See my posting in the tread titled
"startup problem // no longer works // profile not called"
at news://news.gmane.org/[EMAIL PROTECTED]

We can see that there is some problem with
"bash: kpsexpand: command not found"


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn






--
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: startup problem // no longer works // profile not called

2004-10-25 Thread Alex Vinokur

"Brian Dessent" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Alex Vinokur wrote:
>
> > bash-2.05b$ man bash
> > Warning: cannot open configuration file /usr/share/misc/man.conf
> > No manual entry for bash
> > bash-2.05b$
>
> Like I said, nothing is going to work until you fix your mounts.  I
> don't know what has changed on your system but your root "/" dir is
> mounted as "C:\cygwin\_download\001" which seems wrong unless your
> entire cygwin subtree is under that dir and not "c:\cygwin" which makes
> a lot more sense.

How can I fix that?

> Replying that "it used to work" is not going to fix anything.
>
> Brian
>

Thanks.

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: startup problem // no longer works // profile not called

2004-10-25 Thread Alex Vinokur

"David Baron" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> All of these posters are complaining about the same thing.
>
> Not at all a bad idea to read the bash man page, the helps, everything.

bash-2.05b$ man bash
Warning: cannot open configuration file /usr/share/misc/man.conf
No manual entry for bash
bash-2.05b$

bash-2.05b$ cygcheck -c bash cygwin
Cygwin Package Information
Package  VersionStatus
bash 2.05b-16   OK
cygwin   1.5.11-1   OK

> But the fact is once clicking the Cygwin icon gave one an operating shell. It no
> longer does.
>


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Profile not called

2004-10-25 Thread Alex Vinokur

"Brian Dessent" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Alex Vinokur wrote:
>
> > HOME = `c:\Documents and Settings\Administrator'
>
> Your home directory has spaces in it.  THat's going to break some
> things.  See the users guide / FAQ.

It worked for a long time (more than 2 years).

>
> > C:\cygwin\_download\001/ system  textmode
> > C:\cygwin\_download\001/bin/usr/bin  system  textmode
> > C:\cygwin\_download\001/lib/usr/lib  system  textmode
> > C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
> > .  /cygdrive system  
> > textmode,cygdrive
>
> Your mounts are messed up.  I don't know what that "_download\001" dir
> is but I suspect that your / should be c:/cygwin, your /usr/bin should
> be c:/cygwin/bin and /usr/lib should be c:/cygwin/lib.  Either fix your
> mounts using "mount" and "umount" commands or rerun setup and point it
> at c:\cygwin to install.  Most everything is going to be broken until
> you fix this.
>
> Brian
>
It also worked for a long time.

Yesterday I downloaded and installed Cygwin updates. After that I have the problem.
Before that I had no problem.


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn






--
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: Profile not called

2004-10-24 Thread Alex Vinokur

"Alex Vinokur" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
[snip]
> I changed the Path environment.
> $ cygcheck -svr > cygcheck.txt 2>&1
> File cygcheck.txt  is attached.
> It didn't help.
>
> I tried to read man bash.
>
> bash-2.05b$ man bash
> Warning: cannot open configuration file /usr/share/misc/man.conf
> No manual entry for bash
> bash-2.05b$

Nothing works.

-- foo.cpp --
#include 
int main ()
{
  return 0;
}
-

bash-2.05b$ g++ foo.cpp
foo.cpp:1:19: stdio.h: No such file or directory
bash-2.05b$

bash-2.05b$ g++ -v foo.cpp
Reading specs from /cygdrive/c/cygwin/bin/../lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with:
/gcc/gcc-3.3.3-3/configure --verbose --prefix=/usr --exec-prefix=/usr 
--sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --ma
ndir=/usr/share/man --infodir=/usr/share/info 
--enable-languages=c,ada,c++,d,f77,java,objc,pascal --enable-nls --without-included-ge
ttext --enable-libgcj --with-system-zlib --enable-interpreter --enable-threads=posix 
--enable-java-gc=boehm --enable-sjlj-exceptions
 --disable-version-specific-runtime-libs --disable-win32-registry
Thread model: posix
gcc version 3.3.3 (cygwin special)
 /cygdrive/c/cygwin/bin/../lib/gcc-lib/i686-pc-cygwin/3.3.3/cc1plus.exe -quiet -v 
-iprefix
/cygdrive/c/cygwin/bin/../lib/gcc-lib/i686-pc-cygwin/3.3.3/ -D__GNUC__=3 
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 -D__CYGWIN32__ -
D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter ../include/w32api -idirafter 
../../include/w32api
foo.cpp -D__GNUG__=3 -quiet -dumpbase foo.cpp -auxbase foo -version -o 
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccdCABy8.s
ignoring nonexistent directory "../include/w32api"
ignoring nonexistent directory "../../include/w32api"
GNU C++ version 3.3.3 (cygwin special) (i686-pc-cygwin)
 compiled by GNU C version 3.3.3 (cygwin special).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=65470
ignoring nonexistent directory "/cygdrive/c/cygwin/include/c++/3.3.3"
ignoring nonexistent directory "/cygdrive/c/cygwin/include/c++/3.3.3/i686-pc-cygwin"
ignoring nonexistent directory "/cygdrive/c/cygwin/include/c++/3.3.3/backward"
ignoring nonexistent directory "/cygdrive/c/cygwin/i686-pc-cygwin/include"
ignoring nonexistent directory "/usr/include/c++/3.3.3"
ignoring nonexistent directory "/usr/include/c++/3.3.3/i686-pc-cygwin"
ignoring nonexistent directory "/usr/include/c++/3.3.3/backward"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include"
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
#include "..." search starts here:
#include <...> search starts here:
 /cygdrive/c/cygwin/lib/gcc-lib/i686-pc-cygwin/3.3.3/include
 /usr/include
End of search list.
foo.cpp:1:19: stdio.h: No such file or directory


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Profile not called

2004-10-24 Thread Alex Vinokur

"Alex Vinokur" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> It seems that profile is not called.
>
> I put several aliases and "Hello from Cygwin" in profile.
> However 'declare' doesn't show them.
> Also Cywing window doesn't print "Hello from Cygwin".
>
> $ cygcheck -c cygwin
> Cygwin Package Information
> Package  VersionStatus
> cygwin   1.5.11-1   OK
>

bash-2.05b$ cygcheck -c bash
Cygwin Package Information
Package  VersionStatus
bash 2.05b-16   OK

-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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



Profile not called

2004-10-24 Thread Alex Vinokur
It seems that profile is not called.

I put several aliases and "Hello from Cygwin" in profile.
However 'declare' doesn't show them.
Also Cywing window doesn't print "Hello from Cygwin".

$ cygcheck -c cygwin
Cygwin Package Information
Package  VersionStatus
cygwin       1.5.11-1   OK


-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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



Problem with man

2004-10-05 Thread Alex Vinokur
Hi,

I have a problem with man.


$ man ps

Unrecognized line in config file (ignored)
JNROFF  LANG=ja_JP.UTF-8 /usr/bin/groff -Tnippon -mandocj
Unrecognized line in config file (ignored)
KNROFF  /usr/bin/groff -Tkorean -mandoc
Unrecognized line in config file (ignored)
JNEQN   /usr/bin/eqn -Tnippon
Unrecognized line in config file (ignored)
KNEQN  /usr/bin/eqn -Tkorean
PS(1)   CYGWIN   PS(1)

NAME
   ps - Report process status

SYNOPSIS
   ps [-aefls] [-u UID]

[---omitted---]


$ cygcheck -c | grep -e man -e cygwin
cygwin  1.5.11-1   OK
cygwin-doc  1.3-7  OK
cygwin-x-doc1.0.4-1OK
help2man1.33.1-1   OK
man 1.5o-1 OK
perl_manpages   5.8.5-3OK
xfig-man3.2.4-2OK
XFree86-man 4.3.0-10   OK
xorg-x11-man-pages  6.8.1.0-1  OK
xorg-x11-man-pages-html 6.8.1.0-1  OK



-- 
 Alex Vinokur
 email: alex DOT vinokur AT gmail DOT com
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Convert Word/html/pdf/TeX to Postscript

2004-09-29 Thread Alex Vinokur

"Roger Leigh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> "Alex Vinokur" <[EMAIL PROTECTED]> writes:
>
> > "Igor Pechtchanski" wrote in message news:[EMAIL PROTECTED]
> > [snip]
> >> TeX->PS: need you ask?  LaTeX! :-)
> > [snip]
> >
> > Perhaps, off-topic:
>
> Most probably, but it is included with Cygwin.
>
> > * What TeX/LaTeX is?
>
> It's a macro language and associated tools used for professional
> high-quality typesetting.  It's very nice.
>
> > * Why do we need it an additinon to PostScript and PDF,
>
> It's used to /generate/ PS and PDF (as well as other formats).
>
> > * Who uses TeX/LaTeX ? For what?
>
> Me.  For letters, scientific and technical writing, documentation,
> tutorials; basically any writing more complex than plain text.
> (Sometimes I use groff -ms instead though--that's another typesetting
> system also available with Cygwin.)
>
> > * TeX  vs. LaTeX ?
>
> TeX is the basic program and language primitives.  LaTeX is a set of
> macros "on top" of TeX which make it simpler, easier and more
> convenient to use (i.e. more high level).  It's a similar markup (in
> concept, not appearance) to DocBook, though it allows far more freedom
> and flexibility in terms of fine-tuning and customising the layout.
> It's also much more extensible.
>
> Here's one example:
>   http://people.debian.org/~rleigh/gtk/ogcalc/ogcalc-1.0.4.tar.gz
> If you unpack it, check ogcalc.tex (the source) and ogcalc.pdf (the
> final document).  It makes a use of a good range of features, and adds
> some custom stuff as the top.
>
[snip]

Thanks.

Your explanation helped me.
Also http://en.wikipedia.org/wiki/TeX explains the issue very good.


-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn








--
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: dvips: Couldn't find header file texc.pro

2004-09-28 Thread Alex Vinokur

"Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> On Tue, 28 Sep 2004, Alex Vinokur wrote:
>
> > "Igor Pechtchanski" wrote:
> > > On Tue, 28 Sep 2004, Alex Vinokur wrote:
> > >
> > > > I tried to invoke dvips.
> > > >
> > > > Here is what I have got.
> > > >
> > > > $ dvips foo.dvi
> > > > This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com)
> > > > dvips: ! Couldn't find header file texc.pro
> > > >
> > > > Any suggestions?
> > >
> > > $ kpsewhich texc.pro
> > > /usr/share/texmf/dvips/base/texc.pro
> > > $ cygcheck -f /usr/share/texmf/dvips/base/texc.pro
> > > tetex-bin-2.0.2-13
> > >
> > > What does "cygcheck -cv tetex-bin" show?
> > [snip]
> >
> >
> > $ kpsewhich texc.pro
> >
> > $ cygcheck -f /usr/share/texmf/dvips/base/texc.pro
> >
> > $ cygcheck -cv tetex-bin
> > Cygwin Package Information
> > Last downloaded files to: C:\cygwin\_download\001
> > Last downloaded files from: http://ftp.inf.tu-dresden.de/software/windows/cygwin32
> >
> > Package  VersionStatus
>
> Ok, just as I suspected, you are not using the Cygwin version of dvips.
> Find out 'which dvips' you're using, and ask for help on the forum
> dedicated to the program that *your* dvips came with.  Alternatively,
> install Cygwin's tetex distribution, and it'll chug along happily.

Installed.

- BEGIN -

$ kpsewhich texc.pro
/usr/share/texmf/dvips/base/texc.pro

$ cygcheck -f /usr/share/texmf/dvips/base/texc.pro
tetex-bin-2.0.2-14


$ cygcheck -cv tetex-bin
Cygwin Package Information
Last downloaded files to: C:\cygwin\_download\002
Last downloaded files from: http://ftp.inf.tu-dresden.de/software/windows/cygwin32

Package  VersionStatus
tetex-bin2.0.2-14   OK


$ which -a dvips
/usr/bin/dvips
/bin/dvips
/usr/bin/dvips

$ ls -l foo.*
-rw-r--r--1 Administ None27136 Sep 28 15:20 foo.doc
-rw-r--r--1 Administ None  360 Sep 28 15:20 foo.dvi
-rw-r--r--1 Administ None 1688 Sep 28 15:19 foo.tex

$ dvips foo.dvi
This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.09.28:1520' -> foo.ps
. [1]


$ ls -l foo.*
-rw-r--r--1 Administ None    27136 Sep 28 15:20 foo.doc
-rw-r--r--1 Administ None  360 Sep 28 15:20 foo.dvi
-rw-r--r--1 Administ None29667 Sep 28 15:31 foo.ps
-rw-r--r--1 Administ None 1688 Sep 28 15:19 foo.tex


-- END --

File foo.ps created.

There is a problem with its content which seems to be caused by convertor Word->TeX.

-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn







--
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: dvips: Couldn't find header file texc.pro

2004-09-27 Thread Alex Vinokur

"Igor Pechtchanski" wrote in message news:[EMAIL PROTECTED]
> On Tue, 28 Sep 2004, Alex Vinokur wrote:
>
> > I tried to invoke dvips.
> >
> > Here is what I have got.
> >
> > $ dvips foo.dvi
> > This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com)
> > dvips: ! Couldn't find header file texc.pro
> >
> > Any suggestions?
>
> $ kpsewhich texc.pro
> /usr/share/texmf/dvips/base/texc.pro
> $ cygcheck -f /usr/share/texmf/dvips/base/texc.pro
> tetex-bin-2.0.2-13
>
> What does "cygcheck -cv tetex-bin" show?
[snip]


$ kpsewhich texc.pro

$ cygcheck -f /usr/share/texmf/dvips/base/texc.pro

$ cygcheck -cv tetex-bin
Cygwin Package Information
Last downloaded files to: C:\cygwin\_download\001
Last downloaded files from: http://ftp.inf.tu-dresden.de/software/windows/cygwin32


Package  VersionStatus



-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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



dvips: Couldn't find header file texc.pro

2004-09-27 Thread Alex Vinokur
I tried to invoke dvips.

Here is what I have got.

$ dvips foo.dvi
This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com)
dvips: ! Couldn't find header file texc.pro


Any suggestions?
Thanks,

   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Convert Word/html/pdf/TeX to Postscript

2004-09-27 Thread Alex Vinokur

"Christopher Faylor" wrote in message news:[EMAIL PROTECTED]
[snip]
> I suppose you could always take this discussion to cygwin-talk and take
> your chances there.
[snip]

Does cygwin-talk already exist? Where (if it exists)?


-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn








--
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: Convert Word/html/pdf/TeX to Postscript

2004-09-27 Thread Alex Vinokur

"Christopher Faylor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> On Mon, Sep 27, 2004 at 08:15:46PM +0200, Alex Vinokur wrote:
> >"Christopher Faylor" wrote in message news:[EMAIL PROTECTED]
> >[snip]
> >> I suppose you could always take this discussion to cygwin-talk and take
> >> your chances there.
> >[snip]
> >
> >Does cygwin-talk already exist? Where (if it exists)?
>
> Where would you expect?

In Gmane.

>
> http://sources.redhat.com/ml/cygwin/2004-09/msg01231.html
>


-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Problem with ps2ascii

2004-09-26 Thread Alex Vinokur

"Larry Hall" wrote in message news:[EMAIL PROTECTED]
> At 05:05 PM 9/26/2004, you wrote:
> >$ ps2ascii foo.ps
> >
> >Error: /undefined in ch-xoff
> >Operand stack:
> >   --nostringval--   --nostringval--   --nostringval--   --nostringval--   0
> >Execution stack:
> >   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   
> > 2
> >%stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   
> >%stopped_push   2   3   %oparray_pop   2   3
> >%oparray_pop   2   3   %oparray_pop   2   3   %oparray_pop   .runexec2   
> >--nostringval--   --nostringval--   --nostringval--   2
> >%stopped_push   --nostringval--   --nostringval--   --nostringval--   
> >--nostringval--
> >Dictionary stack:
> >   --dict:1100/1123(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--   
> > --dict:186/300(L)--
> >Current allocation mode is local
> >Current file position is 14855
> >GNU Ghostscript 8.01: Unrecoverable error, exit code 1
> >
> >
> >What is wrong?
>
>
> WFM with the Cygwin version (7.05) using a postscript file I had hanging
> around.  You'll want to check with the folks from whom you got gs 8.01.
> They might be able to help you out.
>
>
>

Here is what I have.

$ which -a gs
/usr/local/bin/gs
/usr/bin/gs
/bin/gs
/usr/bin/gs
/usr/X11R6/bin/gs

$ gs -v
GNU Ghostscript 8.01 (2004-01-30)
Copyright (C) 2004 artofcode LLC, Benicia, CA.  All rights reserved.

$ /usr/X11R6/bin/gs -v
GNU Ghostscript 7.05 (2002-04-22)
Copyright (C) 2002 artofcode LLC, Benicia, CA.  All rights reserved.


-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn






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



Problem with ps2ascii

2004-09-26 Thread Alex Vinokur
$ ps2ascii foo.ps

Error: /undefined in ch-xoff
Operand stack:
   --nostringval--   --nostringval--   --nostringval--   --nostringval--   0
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2
%stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   
%stopped_push   2   3   %oparray_pop   2   3
%oparray_pop   2   3   %oparray_pop   2   3   %oparray_pop   .runexec2   
--nostringval--   --nostringval--   --nostringval--   2
%stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1100/1123(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--   
--dict:186/300(L)--
Current allocation mode is local
Current file position is 14855
GNU Ghostscript 8.01: Unrecoverable error, exit code 1


What is wrong?

-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn








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



'gs' as 'ps viewer'

2004-09-19 Thread Alex Vinokur
Is it possible to use 'gs' as 'ps viewer'?

-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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



Sources of the C++ library

2004-07-22 Thread Alex Vinokur
==
Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4
CYGWIN_NT-5.0 1.5.10(0.116/4/2) 2004-05-25 i686
g++ (GCC) 3.3.1 (cygming special)
==

Could I need sources of the C++ library?
I need that as a result of discussion at 
http://groups.google.com/groups?threadm=2m7lltFjj3nuU1%40uni-berlin.de.


   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn







--
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: Performance: g++ Cygwin vs. other compilers (copying char[] to vector)

2004-07-18 Thread Alex Vinokur

"Tim Prince" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> At 05:00 AM 7/18/2004, Alex Vinokur wrote:
>
> >Hi,
> >
> >How to explain so considerable difference in performance: g++ Cygwin vs.
> >other compilers in tests below?
[snip]

> I don't find your compile options, or whether you have profiled.  For g++
> under cygwin,
[snip]

g++ *.cpp -o cps_cyg.exe   // g++ Cygwin
g++ -mno-cygwin *.cpp -o cps_mgw.exe  // g++ Mingw
gpp *.cpp -o cps_dj.exe  // g++ Djgpp
cl /EHsc *.cpp -o cps_ms.exe   // C++ Microsoft
dmc -I. -IC:/dm/stlport/stlport -Ae *.cpp -o cps_dm.exe  // C++ Digital Mars

[snip]


-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn








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



Performance: g++ Cygwin vs. other compilers (copying char[] to vector)

2004-07-18 Thread Alex Vinokur
Hi,

How to explain so considerable difference in performance: g++ Cygwin vs. other 
compilers in tests below?


Simple C/C++ Perfometer : Copying char[] to vector (Version CS-1.0)
* func_memcpy
* func_copy
* func_copy_with_reserve
* func_transform
* func_ctor

* The whole program at http://thread.gmane.org/gmane.comp.lang.c++.perfometer/58
  contains the following files :
  - copystr.h // Header file: 
http://article.gmane.org/gmane.comp.lang.c++.perfometer/58/
  - info.cpp  // Information about compiler : 
http://article.gmane.org/gmane.comp.lang.c++.perfometer/59/
  - cps_test.cpp  // Function tested: 
http://article.gmane.org/gmane.comp.lang.c++.perfometer/60/
  - cps_main.cpp  // Main program   : 
http://article.gmane.org/gmane.comp.lang.c++.perfometer/61/

Payload code  : cps_test.cpp.
Housekeeping code : copystr.h, info.cpp, cps_main.cpp.


## C++ Code Tested : BEGIN ##
// Code from http://article.gmane.org/gmane.comp.lang.c++.perfometer/60


#define STR_LEN 100

char cstr[STR_LEN];
struct char_identity
{
  char operator()(char ch) const { return ch; }
};


// == Function tested using Simple C++ Perfometer ==
void func_memcpy()
{
vector vect (STR_LEN);
  memcpy(&vect[0], cstr, STR_LEN);
}

void func_copy()
{
vector vect;
  copy(cstr, cstr + STR_LEN, back_inserter(vect));
}


void func_copy_with_reserve()
{
vector vect;
  vect.reserve(STR_LEN);
  copy(cstr, cstr + STR_LEN, back_inserter(vect));
}


void func_transform()
{
vector vect (STR_LEN);
  transform(cstr, cstr + STR_LEN, vect.begin(), char_identity());
}


void func_ctor()
{
vector vect (cstr, cstr + STR_LEN);
}


// =


## C++ Code Tested : END 




## Run Log (Fragments) : BEGIN 
>From http://article.gmane.org/gmane.comp.lang.c++.perfometer/62/




Simple C/C++ Perfometer : Copying String
Version CS-1.0


C/C++ Performance Tests
===
Using Simple C/C++ Perfometer (Copying char[] to vector), Version CS-1.0
http://thread.gmane.org/gmane.comp.lang.c++.perfometer/58/  (The whole program)
http://article.gmane.org/gmane.comp.lang.c++.perfometer/60/ (Functions tested 
only)




Environment
---
Windows 2000 Professional
Intel(R) Celeron(R) CPU 1.70 GHz


 
 ### Compilation with no optimization
 


 ### char[] size   : 100
 ### Number of repetitions : 10


--
GNU gcc 3.3.1 (CYGWIN)
--

 ### CLOCKS_PER_SEC: 1000

func_memcpy:   2937 units (2.937 secs)
func_copy  :  14487 units (14.487 secs)
func_copy_with_reserve :   4098 units (4.098 secs)
func_transform :   3428 units (3.428 secs)
func_ctor  :   2944 units (2.944 secs)



-
GNU gcc 3.3.1 (MINGW)
-

 ### CLOCKS_PER_SEC: 1000

func_memcpy: 74 units (0.074 secs)
func_copy  :   1117 units (1.117 secs)
func_copy_with_reserve :584 units (0.584 secs)
func_transform :303 units (0.303 secs)
func_ctor  : 57 units (0.057 secs)



-
GNU gcc 3.3.4 (DGGPP 2.3)
-

 ### CLOCKS_PER_SEC: 91

func_memcpy: 11 units (0.121 secs)
func_copy  :243 units (2.670 secs)
func_copy_with_reserve :121 units (1.330 secs)
func_transform : 65 units (0.714 secs)
func_ctor  : 10 units (0.110 secs)



---
Microsoft C++ 13.00 (Unmanaged)
---

 ### CLOCKS_PER_SEC: 1000
func_memcpy:   1465 units (1.465 secs)
func_copy  :  13202 units (13.202 secs)
func_copy_with_reserve :   4609 units (4.609 secs)
func_transform :   1963 units (1.963 secs)
func_ctor  :   1378 units (1.378 secs)



-
Digital Mars C/C++ 8.40.2
-

 ### CLOCKS_PER_SEC: 1000

func_memcpy: 63 units (0.063 secs)
func_copy  :574 units (0.574 secs)
func_copy_with_reserve :220 units (0.220 secs)
func_transform :130 units (0.130 secs)
func_ctor  : 60 units (0.060 secs)



## Run Log (Fragments) : END ##


List of the functions sorted according to performance:
* func_ctor  (the fastest)
* func_memcpy
* func_transform
* func_copy_with_reserve
* func_copy





-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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

What does clock() return?

2004-07-07 Thread Alex Vinokur
Here is an article http://groups.google.com/groups?selm=2l2ucgF7jv50U1%40uni-berlin.de
from http://groups.google.com/groups?group=microsoft.public.vc.language


"Victor Bazarov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Is it a known issue that in VC++ RTL the function 'clock()'
> reports the wall clock instead of CPU time used?  I ran this
> test program on Windows and Unix:
> -
> #include 
> #include 
>
> using namespace std;
>
> int main()
> {
>  time_t t0 = time(0);
>  clock_t c0 = clock();
>
>  for (int i = 0; i < 10; ++i)
>  {
>  cout << "push > " << flush;
>  char a;
>  cin >> a;
>  cout << endl;
>  }
>
>  cout << "Difference in wall clock is "
>   << difftime(time(0), t0) << endl;
>  cout << "Difference in CPU ticks is "
>   << double(clock() - c0) / CLOCKS_PER_SEC << endl;
>
>  return 0;
> }
> ---
> and got very similar values on Windows and quite different
> values on Unix.  It seems that on Windows it just takes the
> time() at the beginning and then 'clock' simply takes the
> difference between current time and the stored value and
> multiplies it with CLOCKS_PER_SEC...
>
> I know of GetProcessTimes() function, but couldn't 'clock()'
> be implemented to use it?
>
> Thanks.
>
> Victor

Windows 2000.
The problem is not only with VC++ RTL.

The program has been compiled:
* with Microsoft C++ 13.00.9466 for 80x86
  cl /EHsc program.cpp -o a_ms.exe

* with gcc version 3.3.1 (cygming special)
   g++ -mno-cygwin -o a_mgw program.cpp // Use the Mingw32 interface
   g++ -o a_cyg program.cpp  // Cygwin


Here are results:

$ a_ms
[---omitted---]
Difference in wall clock is 11
Difference in CPU ticks is 11.847

$ a_mgw
[---omitted---]
Difference in wall clock is 10
Difference in CPU ticks is 10.925

$ a_cyg
[---omitted---]
Difference in wall clock is 9
Difference in CPU ticks is 0.03


Here are DLLs:
a_ms.exe
  C:\WINNT\system32\KERNEL32.dll
C:\WINNT\system32\NTDLL.DLL

a_mgw.exe
  C:\WINNT\system32\msvcrt.dll
C:\WINNT\system32\KERNEL32.dll
  C:\WINNT\system32\NTDLL.DLL

a_cyg.exe
  C:\cygwin\bin\cygwin1.dll
C:\WINNT\system32\ADVAPI32.DLL
  C:\WINNT\system32\NTDLL.DLL
  C:\WINNT\system32\KERNEL32.DLL
  C:\WINNT\system32\RPCRT4.DLL


It seems that the problem is in DLLs (?).


-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: gcc -mno-cygwin foo.c & gcc foo.c generate different behavior

2004-06-22 Thread Alex Vinokur

"Alex Vinokur" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> 
> Windows 2000
> CYGWIN_NT-5.0 1.5.10-3 (0.116/4/2)
> gcc (GCC) 3.3.1 (cygming special)
> 
>
>
>
> -- foo.c --
>
> #include 
>
> struct foo
> {
>   char* bar_;
> };
>
> int main()
> {
> char* ch = "ABC";
--
> struct foo* f;
f  is not initialized
--
>
>   f->bar_ = ch;  /* gcc foo.c : Segmentation fault */
>   printf("start\n");
>   printf("---> %s\n", f->bar_);
>   printf("finish\n");
>
>   return 0;
>
> }
>
[snip]

-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





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



gcc -mno-cygwin foo.c & gcc foo.c generate different behavior

2004-06-22 Thread Alex Vinokur

Windows 2000
CYGWIN_NT-5.0 1.5.10-3 (0.116/4/2)
gcc (GCC) 3.3.1 (cygming special)




-- foo.c --

#include 

struct foo
{
  char* bar_;
};

int main()
{
char* ch = "ABC";
struct foo* f;

  f->bar_ = ch;  /* gcc foo.c : Segmentation fault */
  printf("start\n");
  printf("---> %s\n", f->bar_);
  printf("finish\n");

  return 0;

}

---

$ gcc -mno-cygwin foo.c

$ a
start
---> ABC
finish

$ cygcheck a
Found: .\a.exe
a.exe
  C:\WINNT\system32\msvcrt.dll
C:\WINNT\system32\KERNEL32.dll
  C:\WINNT\system32\NTDLL.DLL


$ gcc foo.c

$ a
Segmentation fault (core dumped)

$ cygcheck a
Found: .\a.exe
a.exe
  C:\cygwin\bin\cygwin1.dll
C:\WINNT\system32\ADVAPI32.DLL
  C:\WINNT\system32\NTDLL.DLL
  C:\WINNT\system32\KERNEL32.DLL
  C:\WINNT\system32\RPCRT4.DLL


-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn







--
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: undefined reference to `_WinMain@16'

2004-06-20 Thread Alex Vinokur

"Alex Vinokur" wrote in message news:[EMAIL PROTECTED]
> 
> Windows 2000
> CYGWIN_NT-5.0 1.5.10-3 (0.116/4/2)
> gcj (GCC) 3.3.1 (cygming special)
> 
>
> - Java code : File HelloWorld.java : BEGIN -
> public class HelloWorld
> {
>   public static void main (String[] args)
>   {
> System.out.println("Hello, world!\n");
>   }
> }
> - Java code : File HelloWorld.java : END ---
>
>
> - Compilation : BEGIN -
>
> $ gcj HelloWorld.java
> /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a(libcmain.o)(.text+0x7a):
> undefined reference to [EMAIL PROTECTED]'
> collect2: ld returned 1 exit status
>
> - Compilation : END ---
>
>
> What is wrong?
>

$ gcj --main=HelloWorld HelloWorld.java
// No problem

Is there any special mailing-list/newsgroup to discuss gcc-java?

Thanks,

-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn







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



gcj : undefined reference to `_WinMain@16'

2004-06-19 Thread Alex Vinokur

Windows 2000
CYGWIN_NT-5.0 1.5.10-3 (0.116/4/2)
gcj (GCC) 3.3.1 (cygming special)


- Java code : File HelloWorld.java : BEGIN -
public class HelloWorld
{
  public static void main (String[] args)
  {
System.out.println("Hello, world!\n");
  }
}
- Java code : File HelloWorld.java : END ---


- Compilation : BEGIN -

$ gcj HelloWorld.java
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a(libcmain.o)(.text+0x7a):
undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status

- Compilation : END ---


What is wrong?

-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn









--
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: Unable to call gcc-java

2004-06-19 Thread Alex Vinokur

"Alex Vinokur" wrote in message news:[EMAIL PROTECTED]
> Hi,
>
> I have installed gcc-java.
[snip]
>
> $ which -a java
> /cygdrive/c/WINNT/system32/java   // not cygwin-gcc-java
>
> $ which -a javac
> javac: Command not found.
>
[snip]

It is OK.

$ man -k Java
[--omitted--]
gcj  (1)  - Ahead-of-time compiler for the Java language
[--omitted--]

$ which gcj
/usr/bin/gcj


-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn






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



Unable to call gcc-java

2004-06-19 Thread Alex Vinokur
Hi,

I have installed gcc-java.

$ cygcheck -c
Cygwin Package Information
Package  VersionStatus
_update-info-dir 00227-1OK
ash  20040127-1 OK
base-files   2.6-1  OK
base-passwd  1.1-1  OK
bash 2.05b-16   OK
binutils 20040312-1 OK
bzip21.0.2-5OK
cygipc   2.03-2 OK
cygutils 1.2.5-1OK
cygwin   1.5.10-3   OK
cygwin-doc   1.3-7  OK
diff 1.0-1  OK
diffutils2.8.7-1OK
editrights   1.01-1 OK
fileutils4.1-2  OK
findutils4.1.7-4OK
gawk 3.1.3-4OK
gcc  3.3.1-3OK
gcc-g++  3.3.1-3OK
gcc-java 3.3.1-3OK
gcc-mingw20030911-4 OK
gcc-mingw-core   20031020-1 OK
gcc-mingw-g++20031020-1 OK
gcc-mingw-java   20031020-1 OK
gdbm 1.8.3-7OK
grep 2.5-1  OK
groff1.18.1-2   OK
gzip 1.3.5-1OK
less 381-1  OK
libbz2_1 1.0.2-5OK
libgdbm  1.8.0-5OK
libgdbm-devel1.8.3-7OK
libgdbm3 1.8.3-3OK
libgdbm4 1.8.3-7OK
libgettextpo00.12.1-3   OK
libiconv21.9.1-3OK
libintl1 0.10.40-1  OK
libintl2 0.12.1-3   OK
libncurses5  5.2-1  OK
libncurses6  5.2-8  OK
libncurses7  5.3-4  OK
libpcre  4.1-1  OK
libpcre0 4.5-1  OK
libpopt0 1.6.4-4OK
libreadline4 4.1-2  OK
libreadline5 4.3-5  OK
login1.9-7  OK
man  1.5k-3 OK
mingw-runtime3.3-1  OK
mktemp   1.5-3  OK
ncurses  5.3-4  OK
pcre 4.5-1  OK
pcre-doc 4.5-1  OK
readline 4.3-5  OK
sed  4.0.9-2OK
sh-utils 2.0.15-4   OK
tar  1.13.25-5  OK
termcap  20021106-2 OK
terminfo 5.3_20030726-1 OK
texinfo  4.2-4  OK
textutils2.0.21-1   OK
w32api   2.5-1  OK
which1.5-2  OK
zlib 1.2.1-1OK



However :

$ which -a java
/cygdrive/c/WINNT/system32/java   // not cygwin-gcc-java

$ which -a javac
javac: Command not found.


What should one do?


-- 
   Alex Vinokur
 http://mathforum.org/library/view/10978.html
 http://sourceforge.net/users/alexvn





--
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: Comparative Performance of C++ Compilers (including gcc cygming special)

2004-04-21 Thread Alex Vinokur

"GARY VANSICKLE" wrote in message news:[EMAIL PROTECTED]
> [snip]
> >
> > New copying methods have been added and checked:
> >
> > Test file modes : text, binary
> > --
> >
> > Testsuites
> > --
> > C-01  : Functions getc() and putc()
> > C-02  : Functions fgetc() and fputc()
> > C-03  : Functions fread() and fwrite()
> > UNIX-C-04 : Function mmap
> > CPP-01: Operators >> and <<
> > CPP-02: Methods get() and put()
> > CPP-03: Methods sbumpc() and sputc()
> > CPP-04: Method sbumpc() and operator <<
> > CPP-05: Method rdbuf() and operator <<
> > CPP-06: Methods read() and write() with const buffer
> > CPP-07: Methods read() and write() with max buffer
> > CPP-08: Method getline
> > CPP-09: Method ifstream getline
> > CPP-10: Method iterators (istream_iterator, ostream_iterator)
> >
> >
> > See:
-- Raw run log --
> > http://article.gmane.org/gmane.comp.lang.c++.perfometer/45

-- Source (Version 1.4) --
> > http://article.gmane.org/gmane.comp.lang.c++.perfometer/44

-- Source (Latest version - 1.6)
http://article.gmane.org/gmane.comp.lang.c++.perfometer/47
> >
>
> So much reading... I need charts and/or graphs man! ;-)
>
>

One should compile a source from 
http://article.gmane.org/gmane.comp.lang.c++.perfometer/47

$ g++ foo.cpp

$ a
 YOUR COMMAND LINE : a

 USAGE : a    []

// Sample-1
$ a 1000 5 750
// The program prints raw run log


// Sample-2
$ a 1000 5 750 3
// The program prints raw run log

// Sample-3
$ a 1 5 750 3
// The program prints raw run log

--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html







--
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: Comparative Performance of C++ Compilers (including gcc cygming special)

2004-04-20 Thread Alex Vinokur
Hans Horn writes:

> 
> Quite interesting indeed!
> 
> Are there other benchmarks around that compare gcc3.x, gcc3.x (cygwin), etc
> against the gcc2.9x vintage?
> 
> H.
> "chris"  cs.york.ac.uk> wrote in message
> news:407C0198.4000707  cs.york.ac.uk...
> > Alex Vinokur wrote:
> >
> > >
> > >Comparative Performance of C++ Compilers
> > >C/C++ Performance Tests
> > >=
> > >
> > >
> > >
[snip]

New copying methods have been added and checked:

Test file modes : text, binary
--

Testsuites
--
C-01  : Functions getc() and putc()
C-02  : Functions fgetc() and fputc()
C-03  : Functions fread() and fwrite()
UNIX-C-04 : Function mmap
CPP-01: Operators >> and <<
CPP-02: Methods get() and put()
CPP-03: Methods sbumpc() and sputc()
CPP-04: Method sbumpc() and operator <<
CPP-05: Method rdbuf() and operator <<
CPP-06: Methods read() and write() with const buffer
CPP-07: Methods read() and write() with max buffer
CPP-08: Method getline
CPP-09: Method ifstream getline
CPP-10: Method iterators (istream_iterator, ostream_iterator)


See:
http://article.gmane.org/gmane.comp.lang.c++.perfometer/45
http://article.gmane.org/gmane.comp.lang.c++.perfometer/44

-- 
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html





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



Problem with gzip

2004-04-14 Thread Alex Vinokur
Hi,

I have a problem with gzip.


Windows 2000 Professional
Cygwin 1.5.5(0.94/3/2)
gzip 1.3.5 (2002-09-30)
guzip 1.3.5 (2002-09-30)


-
$ gunzip logs.tar.gz

gunzip: logs.tar.gz: invalid compressed data--crc error

gunzip: logs.tar.gz: invalid compressed data--length error
-

See attachment.

P.S. The bug report has been sent to [EMAIL PROTECTED] too (2004-04-06).

   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html



begin 666 test.zip
M4$L#! H```EMAC %`!4`=&5S="]55 D``Q*)
M9*RNZ9C5I*R*I(E90H;W@,[EMAIL PROTECTED]/FXK]2D1!*$](
MPH;->"R_\='#9Y+1._!)2<9K`3^^VM[:WEI]/?"=\(#$$Q;?2R[8N('+9-149%Q'+R7\Q8"%8+`G^6/[\",[O[PF_;A+;]]!VYS$9<[EMAIL PROTECTED]&
M*"2SJ>7BNXM;:(UWL(R[E6JE&%&$
M'[EMAIL PROTECTED]>Z8[?CF!13*2B0V8I863&09 SR+!0"'3=F'C6? SETN&A
[EMAIL PROTECTED](@KPA(TTN&.9B *&.D:FH8$F'NR:[EMAIL PROTECTED]
MA1S/Q',:3VBEHP,3S2EV<)W0>'"[EMAIL PROTECTED]"_U'QD:Z^61 #0>JF+(M*J.A.L.@:
M,"[&9/_249J'WG-MU[$U[\E]3C,>#V):XUNX;K39%H&K;0$;L+JD,NBJ7
MG)L/7KX4//F%%"6KJ([EMAIL PROTECTED]@<@%QOFQRV>[EMAIL PROTECTED]@M^=W?4L%ON*1P(>4\N"QD.
MSV<7YC::C"BL)/*V/*YH1J:TAFA_2GG."'BRR?,5]CFL\SQ.FX3-5Z$3PHAX
M+J_"[EMAIL PROTECTED])KKZ^$GY7VCPDB'Q;^I"*AU14]/[/P/O[<+XH^<[6=B7;
MV>+VUB&IF&BJG%B'Y+O*W]=+O#I!$!1M4F'0AA^ZFYVE3F38Z$V7U/?P*/FJ
MX -[,_^!J_M?J?R.W<-=-$$E$[EMAIL PROTECTED]>"K,1\`*B5C:S-CEWDF$1*X&0S>85"
MCU_D;398HD#O.J.*PPOC\?$5R6?Z!KMT;/U!.QC,'QD#>3C0/3IK0AK 2PRJ
M/,+AH7[-6.SP5Q?#P^57OR$,!K.GR6!YYS,9NG[+\ M-&R9O,B?OCZ\&;WLW
M*M8+C=CSXT\J5NG_&K9WH6)#&\/V+F[6W4:N$:I[[:#,^I<7[];G=HE$X%DKO%BLTT$.Q:/DC9A^L>N%?ARHM8
[EMAIL PROTECTED];[EMAIL PROTECTED]:>PSIT8%N#LT\?5(O(2%-:Z'#7,E+5:^[:9IJ]"RP6
MUS$3!8LUN(N2_:V_GD+70UE**%8A-T!92CA:(3=$J<[Q:H7<"[EMAIL PROTECTED])9Z1AI
M8A7R+"-5O4*>8Z:)5\ASS421"GF>D>S5\6E/S8SG&WE>7=Y>G%ZKZ "EVS/XXAFK.;]Y>[EMAIL PROTECTED]:RYK_"S=@
M%6GKO\.[E?5-AA*0(WZ$4WQ,T& P3&H1/
M3T(-\.F)_N[[Z,<,?6**",KF***"A(J+);H;ALMY)[EMAIL PROTECTED]&8;#^YPLDJ%9-P2T
MWNE)^.8-ZL]1_XN'^C$CCWT<4/T;[P<[EMAIL PROTECTED]&5/[EMAIL PROTECTED](A+UO\%_
MG"[EMAIL PROTECTED] !G^.XYR%BG+6E\3\U-]%6.'*Y\\@"&5ADD<$H7Z(
M`(Z'@S#+4)\7'SAP#$=9DLL9>L2"@70S)!^I"A?HU9KR*T0E8APEG,V)0#+/
M,BX4B;[EMAIL PROTECTED]@$^7RNE<@9DCPE2&$Q)TJ>GGQF**8)007E",6"
[EMAIL PROTECTED];>Z/+T!#W_]_QI>PZK->/KG6O6:IEYX]GI205"JL1?`8Q&-S-$
[EMAIL PROTECTED])$RRPEM*J2!FT1R"_(([EMAIL PROTECTED](TAF)*0Q!>7RE"JE
MA><"98"=$C Z="?I3^(K(T)O-ZQWO8:52Z;PD_V$`@)P!-V=]Y#B]X35(-P<
MA]B1Y#TZK*,:)WL?Q'1T%-$JL([$KL?[(MR\/8IH%5A78M?'([EMAIL PROTECTED])=-Q!"$
[EMAIL PROTECTED](0H)6D`.Z]B+%"PWS]P&[EMAIL PROTECTED]@PFYF/D%G.!H/!>:\F
MS%U?U9-]]PO("M*:[NUD7[H?%9HG/, )DB'/R.Z]O*FWWNOSUR_H3TCNL$E 
M([F1"'B\,HP>@DRZL()"^M0VU0I]JR1G39)XTVF)0%(::\6XMV6"'>Q
MH(1%/11B,"*6+ %F'2JU4))"P8FMV8.D4M; [EMAIL PROTECTED]&>^VF_&H!+CS_73I
MQX(0/Z&R3M^&6;W2QY5R;RLS&M>P\MI'"[EMAIL PROTECTED]()3]H 3&J&0LPV=_R7X^T(?*A!EJHYI0S;_I\DRQN.C9/,JK)L+ZCQ49AZ=.Q5
M[8KU4,[EMAIL PROTECTED];,FM-JE_-6<&>?,#17%3CP%J:[EMAIL PROTECTED],$-M;6<\R6N(L
M)$:)1*]?-]E7R9+([%NPO
M;_M"83QIB!W-3C4]CE--&YRJS"3;F_%A+D6)O)1#4#!3IN'[EMAIL PROTECTED]
MX*I5#V^?GXUOVSPM10A-OY$XM95,T=J',V\WOTK[/X$S?2&BKP] :NV5RNL]
M0E35;@3F8V8RD&FP.:[EMAIL PROTECTED]:?<:DG603IW:L!J]T(LA$
M=Y52W=]XMJP2?=^4A[.9_]7G/"V>LA'V10M0J*1,R*9 ,/Y:!]YSH+_"L"= 
M5QFW2+)L/6Q;">DB7UM:TU9C%4/MA5.[;'(04YB68Y!,<,4-<\W3Q2J*GJXP
[EMAIL PROTECTED](IUJ-&S);:%LJ*L:M![)BM084:T4B?,94S]++[[$K>+#UWT-^Q;'%#
MJVUYN4UP=N/=M!I5[6G<[68S_[%-&M3?F":F.]/$1D>O=QV-&B9_D/N-8+5'
MOP5VO)[EMAIL PROTECTED]:^=J-58PMAPNNC$*I.[E_4G.VM6("/)DGGNO/0X:-ZN]$YZ[M)VYJ<-SI&JJ[=YH"YQGN6
M:USLY/G5PN\S%,\ISW0TE&?B;IL/=,TQA]!Z^Y#C->47M]#JC1J*L->O?W%L
M];S29^IFQG8B6 R.)4 4L^.M8^.6^X696IUSL56K.7PF
MR /E^29M+(NA] ZLEDSU+)8\^O+GENE^45KMO%)IN\7*5 ^]1;L[@[F6R"[EMAIL PROTECTED]). 0X[>4V
MM$%85G8R&?(TXSF+$'D"]Y7Z)JG#=I/C']&DF_[*FQYG'5:$TH&[EMAIL PROTECTED]; @%
[EMAIL PROTECTED] ]!34"![E,`Y[47'Z,ZB.F%L/<6A45R68&=1+DEQA#0[X61.6"
M=>!?O22R`T+=Y'8IE:7"0IG+H-[Z+;W5,- @[EMAIL PROTECTED]<)2T
M/;7)VWT53%CTF]4[<6FZW.7L0*QAUOK>K7RMP$+(+:@>..9N[J&UL/V5"LM_
MOPW6AX+%/$]U&[EMAIL PROTECTED]"[EMAIL P

Re: Comparative Performance of C++ Compilers (including gcc cygming special)

2004-04-13 Thread Alex Vinokur

"Alex Vinokur" wrote in message news:[EMAIL PROTECTED]
[snip]
> > How can we know how long the startup time is?
>
> In other words, what is the difference between startup time and runtime?
> What takes (doesn't take) place in startup time?
>
[snip]

Can we know when the start time ends?

--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html






--
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: Comparative Performance of C++ Compilers (including gcc cygming special)

2004-04-13 Thread Alex Vinokur

"Alex Vinokur" wrote in message news:[EMAIL PROTECTED]
>
> "chris" wrote in message news:[EMAIL PROTECTED]
> > Alex Vinokur wrote:
> >
> > >
> > >Comparative Performance of C++ Compilers
> > >C/C++ Performance Tests
> > >=
> > >
> > >
> > >
> > 
> >
> > While this is quite interesting, it seems to me you aren't really
> > running these programs for long enough for us to be able to see what
> > differences are due to startup time and due to runtime.
>
> How can we know how long the startup time is?

In other words, what is the difference between startup time and runtime?
What takes (doesn't take) place in startup time?

[snip]


--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html






--
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: Comparative Performance of C++ Compilers (including gcc cygming special)

2004-04-13 Thread Alex Vinokur

"chris" wrote in message news:[EMAIL PROTECTED]
> Alex Vinokur wrote:
>
> >
> >Comparative Performance of C++ Compilers
> >C/C++ Performance Tests
> >=
> >
> >
> >
> 
>
> While this is quite interesting, it seems to me you aren't really
> running these programs for long enough for us to be able to see what
> differences are due to startup time and due to runtime.

How can we know how long the startup time is?

> How about a couple of extra jobs, one of which runs for 1 minute and one for 2?
>
>
>

Three extra jobs for copyfile.cpp, g++ (Mingw32 Interface), No optimization.
* job-1 : 1 min 10 sec
* job-2 : 2 min 28 sec
* job-2 : 5 min 57 sec



$ g++ -mno-cygwin copyfile.cpp

$ command time -p a 1000 50 750 1 > out 2>&1  // job-1

$ cat out

===
Simple C/C++ Perfometer : Copying files
Version CF-1.1
===


-
GNU gcc 3.3.1 (MINGW)
-

 YOUR COMMAND LINE : a.exe 1000 50 750 1

 ### File size : 1000
 ### Number of runs: 1
 ### Number of tests   : 50
 ### Number of repetitions : 750
 ### CLOCKS_PER_SEC: 1000



   Run-1 of 1 : Started ..
c_1__functions_getc_putc : 45 units (0.045 secs)
c_2__functions_fgetc_fputc   :175 units (0.175 secs)
c_3__functions_fread_fwrite  : 22 units (0.022 secs)
cpp_1__operators_in_out  :434 units (0.434 secs)
cpp_2__methods_get_put   :235 units (0.235 secs)
cpp_3__methods_sbumpc_sputc  : 89 units (0.089 secs)
cpp_4__method_sbumpc__op_out : 41 units (0.041 secs)
cpp_5__method_rdbuf__op_out  : 38 units (0.038 secs)
cpp_6__methods_cpp_read_write__const_buf : 39 units (0.039 secs)
cpp_7__methods_cpp_read_write__max_buf   : 35 units (0.035 secs)
   Run-1 of 1 : Finished

real 70.24
user 0.02
sys 0.07




$ command time -p a 1000 100 750 1 > out 2>&1  // job-2

$ cat out

===
Simple C/C++ Perfometer : Copying files
Version CF-1.1
===


-
GNU gcc 3.3.1 (MINGW)
-

 YOUR COMMAND LINE : a.exe 1000 100 750 1

 ### File size : 1000
 ### Number of runs: 1
 ### Number of tests   : 100
 ### Number of repetitions : 750
 ### CLOCKS_PER_SEC: 1000



   Run-1 of 1 : Started 

c_1__functions_getc_putc : 85 units (0.085 secs)
c_2__functions_fgetc_fputc   :324 units (0.324 secs)
c_3__functions_fread_fwrite  : 42 units (0.042 secs)
cpp_1__operators_in_out  :782 units (0.782 secs)
cpp_2__methods_get_put   :411 units (0.411 secs)
cpp_3__methods_sbumpc_sputc  :157 units (0.157 secs)
cpp_4__method_sbumpc__op_out : 71 units (0.071 secs)
cpp_5__method_rdbuf__op_out  : 64 units (0.064 secs)
cpp_6__methods_cpp_read_write__const_buf : 67 units (0.067 secs)
cpp_7__methods_cpp_read_write__max_buf   : 62 units (0.062 secs)
   Run-1 of 1 : Finished

real 208.71
user 0.05
sys 0.04




$ command time -p a 1000 200 750 1 > out 2>&1  // job-2

$ cat out

===
Simple C/C++ Perfometer : Copying files
Version CF-1.1
===


-
GNU gcc 3.3.1 (MINGW)
-

 YOUR COMMAND LINE : a.exe 1000 200 750 1

 ### File size : 1000
 ### Number of runs: 1
 ### Number of tests   : 200
 ### Number of repetitions : 750
 ### CLOCKS_PER_SEC: 1000



   Run-1 of 1 : Started


c_1__functions_getc_putc : 81 units (0.081 secs)
c_2__functions_fgetc_fputc   :307 units (0.307 secs)
c_3__functions_fread_fwrite  : 39 units (0.039 secs)
cpp_1__operators_in_out  :734 units (0.734 secs)
cpp_2__methods_get_put   :385 units (0.385 secs)
cpp_3__methods_sbumpc_sputc  :152 units (0.152 secs)
cpp_4__method_sbumpc__op_out : 67 units (0.067 secs)
cpp_5__method_rdbuf__op_out  : 62 units (0.062 secs)
cpp_6__methods_cpp_read_write__const_buf : 62 units (0.062 secs)
cpp_7__methods_cpp_read_write__max_buf   : 59 units (0.059 secs)
   Run-1 of 1

Re: Comparative Performance of C++ Compilers (including gcc cygming special)

2004-04-13 Thread Alex Vinokur

"Hans Horn" wrote in message news:[EMAIL PROTECTED]
> Quite interesting indeed!
>
> Are there other benchmarks around that compare gcc3.x, gcc3.x (cygwin), etc
> against the gcc2.9x vintage?

See "C/C++ Program Perfometer : Tool for measuring comparative performance of the 
C/C++ code "
http://groups.google.com/groups?selm=bm9216%24jvo98%241%40ID-79865.news.uni-berlin.de

>
> H.
> "chris" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Alex Vinokur wrote:
> >
> > >
> > >Comparative Performance of C++ Compilers
> > >C/C++ Performance Tests
> > >=
> > >
[snip]

--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html





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



Comparative Performance of C++ Compilers (including gcc cygming special)

2004-04-13 Thread Alex Vinokur

Comparative Performance of C++ Compilers
C/C++ Performance Tests
=

Environment
---
Windows 2000 Professional
Intel(R) Celeron(R) CPU 1.70 GHz

Compilers
-
* GNU g++ 3.3.1 (cygming special), Cygwin
* GNU g++ 3.3.1 (cygming special), Mingw32 Interface
* GNU gpp 3.3.2 (djgpp)
* Microsoft C++ 13.00.9466 (Unmanaged)
* Microsoft C++ 13.00.9466 (Managed)
* Borland C++ 5.5.1
* Digital Mars C++ 8.40.2
* Intel C++ 8.0


Testsuites
--
* Computing very large Fibonacci numbers
  http://article.gmane.org/gmane.comp.lang.c++.perfometer/37

* Copying files (input to output)
  http://article.gmane.org/gmane.comp.lang.c++.perfometer/38


--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html






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



Configure a mailer to not quote raw e-mail addresses in replies (was: help with gcc)

2004-03-19 Thread Alex Vinokur

"Igor Pechtchanski" wrote in message :
> Alex,
>
> Please configure your mailer to not quote raw e-mail addresses in your
> replies -- let's not make it easier for the spam harvesters.  More below.
>
[snip]
OE-QuoteFix has been recommended to do that :
http://groups.google.com/groups?th=1ebcb6e9525fa75b

Could you recommend another tool?

By the way. Your original message contains the following signature (explicit e-mail 
address).
> --
> http://cs.nyu.edu/~pechtcha/
>   |\  _,,,---,,_ [EMAIL PROTECTED]
> ZZZzz /,`.-'`'-.  ;-;;,_ [EMAIL PROTECTED]
[snip]

--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html





--
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: help with gcc (a.exe & cygwin1.dll)

2004-03-18 Thread Alex Vinokur

"Dave Korn" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
>
> > -Original Message-
> > From: cygwin-owner On Behalf Of Neto, Antonio Jose Rodrigues
> > Sent: 18 March 2004 13:51
>
> > After this gcc -o hello hello.c
> >
> > Now, I need to send this program to another person that don't
> > have cygwin1.dll. So, they cannot execute the exe file
> > without the dll.
> >
> > Is is possible to generate a exe file that don't needs the
> > dll of cygwin?
>
> gcc -o hello -mno-cygwin hello.c
>
> [insert generic RTFF comment here]
>

-- foo.c --
#include 
int main ()
{
struct utsname u;
  return 0;
}
---

$ gcc foo.c

$ cygcheck a.exe
Found: .\a.exe
a.exe
  C:\cygwin\bin\cygwin1.dll
C:\WINNT\System32\KERNEL32.dll
  C:\WINNT\System32\NTDLL.DLL


If we send the a.exe and cygwin1.dll to another person, could he execute a.exe?
Where he should set cygwin1.dll ?

--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html






--
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: Different executables of the same source

2004-02-10 Thread Alex Vinokur

"Demmer, Thomas" wrote in message news:[EMAIL PROTECTED]

[snip]
> Due to this "feature" the MD5-sums
> of executables compiled on two different machines will hardly ever
> concide.
[snip]

How to compute the MD5-sums of executables?

--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html







--
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: Different executables of the same source

2004-02-10 Thread Alex Vinokur

"Shankar Unni" wrote in message news:[EMAIL PROTECTED]
> Demmer, Thomas wrote:
>
> > Because the PE header has a field that contains
> > the creation time. Due to this "feature" the MD5-sums
> > of executables compiled on two different machines will hardly ever
> > concide. I have no clue why this feature exists.
>
> Almost *all* object file formats (ELF, COFF/PE, ...) have such headers,
> to tell you when and where it was built.
>
>

How can one get the creation time of object file foo.o?


--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html





--
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: Different executables of the same source

2004-02-10 Thread Alex Vinokur

"Demmer, Thomas" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>"Alex Vinokur" wrote:
>[...]
>>$ gcc foo.c -o x1.exe
>>
>>$ gcc foo.c -o x2.exe
>>
>>$ cmp x1.exe x2.exe
>>x1.exe x2.exe differ: char 137, line 2
>>
>>Why are x1.exe and x2.exe different?

>Because the PE header has a field that contains
>the creation time.
[snip]

What does 'the PE header' mean?

--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html






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



Different executables of the same source

2004-02-10 Thread Alex Vinokur
$ uname -sr
CYGWIN_NT-5.0 1.5.5(0.94/3/2)

$ gcc --version
gcc (GCC) 3.3.1 (cygming special)
[snip]

$ cmp -v
cmp (GNU diffutils) 2.8.4
[snip]


--- C program (foo.c) ---
int main()
{
  return 0;
}
-

$ gcc foo.c -o x1.exe

$ gcc foo.c -o x2.exe

$ cmp x1.exe x2.exe
x1.exe x2.exe differ: char 137, line 2

Why are x1.exe and x2.exe different?


--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html







--
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: shmget : Function not implemented

2004-01-04 Thread Alex Vinokur
Hello Gerrit,

Now it woks fine (see below).

Thanks.

"Gerrit P. Haase" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hallo Alex,
>
>
> >> Guesses:
> >> 1. The ipc-daemon2 needs to run.
> > How can one know that?
>
> Since you used the cygipc library to link against, you should read the
> documents which are included in the cygipc package.
>
> >> 2. Wrong headers (cygipc-2.x not installed)?
>
> > $ cygcheck -c | grep ipc
> > // Nothing
>
> Should be:
> $ cygcheck -c | grep ipc
> cygipc  2.02-1 OK
>
> > $ cygcheck -s | grep ipc
> >28k 2003/08/11 C:\cygwin\bin\cygcygipc-2.dll
>
> $ cygcheck -s | grep ipc
>22k 2003/10/17 H:\bin\cygcygipc-2.dll
>
> That is an older DLL.  Have you installed it without using setup.exe?
> Install the latest cygipc with setup.exe to be sure all is in place
> and read the docs in /usr/share/doc/Cygwin where is explained how to
> install it as a service or how to run it without installing it as
> service (Win98).  Start the service and compile again, then it should
> run as it does for me.
>
>
> >>
> >> $ ls -l  /usr/include/sys/shm.h
> >> -rwxrwxrwx1 #gerrit  Benutzer 3330 Oct 17 07:25 /usr/include/sys/shm.h
> >>
>
> > $ ls -l  /usr/include/sys/shm.h
> > -rw-r--r--1 Administ None 3330 Aug 11 04:54 /usr/include/sys/shm.h
>
> Old version, see above.
>
[snip]




== C code : File foo.c : BEGIN ==
#include 
#include 
#include 
#include 
#include 

int main()
{
const int id = shmget(IPC_PRIVATE, 2*sizeof(int), 0660);

  if (id == -1)
  {
printf ("ERROR : %d - %s\n", errno, strerror(errno));
  }
  else
  {
printf ("OK\n");
  }

  return 0;
}


== C code : File foo.c : END 


== Compilation & Run : BEGIN ==

$ cygcheck -c | grep ipc
cygipc   2.02-1 OK

$ cygcheck -s | grep ipc
   22k 2003/10/17 C:\cygwin\bin\cygcygipc-2.dll
cygipc   2.02-1

$ ls -l  /usr/include/sys/shm.h
-rw-r--r--1 Administ None 3330 Oct 17 07:25 /usr/include/sys/shm.h

$ gcc foo.c -lcygipc

$ a
ERROR : 88 - Function not implemented


$ ipc-daemon2&
[1] 1728

$ a
OK

== Compilation & Run : END 


--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html






--
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: shmget : Function not implemented

2004-01-04 Thread Alex Vinokur

"Gerrit P. Haase" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hallo Alex,
>
> Am Sonntag, 4. Januar 2004 um 12:51 schriebst du:
>
> > Hi,
>
> > I have got a problem with shmget.
>
> > Something wrong?
>
> > ===
> > Windows 2000 Professional
> > CYGWIN_NT-5.0 1.5.5(0.94/3/2)
> > gcc version 3.3.1 (cygming special)
> > ===
>
> > == C code : File foo.c : BEGIN ==
> > #include 
> > #include 
> > #include 
> > #include 
>
> > int main()
> > {
> > const int id = shmget(IPC_PRIVATE, 2*sizeof(int), 0660);
>
> >   if (id == -1) printf ("ERROR : %d - %s\n", errno, strerror(errno));
>
> >   return 0;
> > }
>
> > == C code : File foo.c : END 
>
>
> > == Compilation & Run : BEGIN ==
>
> > $ gcc foo.c -lcygipc
>
> > $ a
>
> > ERROR : 88 - Function not implemented
>
> > == Compilation & Run : END 
>
> The example works for me(tm).
>
> Guesses:
> 1. The ipc-daemon2 needs to run.
How can one know that?

> 2. Wrong headers (cygipc-2.x not installed)?

$ cygcheck -c | grep ipc
// Nothing

$ cygcheck -s | grep ipc
   28k 2003/08/11 C:\cygwin\bin\cygcygipc-2.dll

>
> $ ls -l  /usr/include/sys/shm.h
> -rwxrwxrwx1 #gerrit  Benutzer 3330 Oct 17 07:25 /usr/include/sys/shm.h
>

$ ls -l  /usr/include/sys/shm.h
-rw-r--r--    1 Administ None 3330 Aug 11 04:54 /usr/include/sys/shm.h


$ cygcheck a.exe
Found: .\a.exe
a.exe
  C:\cygwin\bin\cygcygipc-2.dll
C:\cygwin\bin\cygwin1.dll
  C:\WINNT\System32\KERNEL32.dll
C:\WINNT\System32\NTDLL.DLL

[snip]

--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html






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



shmget : Function not implemented

2004-01-04 Thread Alex Vinokur
Hi,

I have got a problem with shmget.

Something wrong?

===
Windows 2000 Professional
CYGWIN_NT-5.0 1.5.5(0.94/3/2)
gcc version 3.3.1 (cygming special)
===

== C code : File foo.c : BEGIN ==
#include 
#include 
#include 
#include 

int main()
{
const int id = shmget(IPC_PRIVATE, 2*sizeof(int), 0660);

  if (id == -1) printf ("ERROR : %d - %s\n", errno, strerror(errno));

  return 0;
}

== C code : File foo.c : END 


== Compilation & Run : BEGIN ==

$ gcc foo.c -lcygipc

$ a

ERROR : 88 - Function not implemented

== Compilation & Run : END ====

--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html





--
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: pthreads, printf and cout

2004-01-03 Thread Alex Vinokur

"Christopher Faylor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> On Fri, Jan 02, 2004 at 07:57:37PM +0200, Alex Vinokur wrote:
> >Hi,
> >
> >Behavior of printf and cout in a program below is different : cout prints nothing.
> >
> >What is wrong?
> >
> >===
> >Windows 2000 Professional
> >CYGWIN_NT-5.0 1.5.4(0.94/3/2)
> >gcc version 3.3.1 (cygming special)
> >===
>
> For starters, what's wrong is that you are using an old version of
> cygwin.  It does no one a service to report bugs against a non-current
> version.
>

I have upgraded cygwin.

-
$ uname -sroi
CYGWIN_NT-5.0 1.5.5(0.94/3/2) unknown Cygwin

$ cygcheck -c | grep cygwin
cygwin   1.5.5-1OK

$ g++ --version
g++ (GCC) 3.3.1 (cygming special)
[---omitted---]
-

Now pthreads and cout work fine.

Thanks,

--
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html







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



pthreads, printf and cout

2004-01-02 Thread Alex Vinokur
Hi,

Behavior of printf and cout in a program below is different : cout prints nothing.

What is wrong?

===
Windows 2000 Professional
CYGWIN_NT-5.0 1.5.4(0.94/3/2)
gcc version 3.3.1 (cygming special)
===


== C++ code : foo.cpp : BEGIN ==

#include 
#include 
#include 
#include 
using namespace std;

extern "C" void* Run(void *)
{
  printf ("printf : Run Start\n");
  cout << "cout   : Run Start" << endl;

  sleep (3);

  printf ("printf : Run Finish\n");
  cout << "cout   : Run Finish" << endl;
}

int main ()
{
pthread_t t1;
  pthread_create(&t1, NULL, Run, NULL);

int errNum = pthread_join(t1, NULL);
  printf ("printf : errNum = %d\n", errNum);
  cout << "cout   : errNum = " << errNum << endl;
}

== C++ code : foo.cpp : END 


== Compilation & Run : BEGIN ==

$ g++ foo.cpp

$ a

printf : Run Start
printf : Run Finish
printf : errNum = 0

// cout prints nothing

== Compilation & Run : END 



--
   =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
 news://news.gmane.org/gmane.comp.lang.c++.perfometer
   =





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



Tool to decrease a size of jpg file

2003-12-20 Thread Alex Vinokur
Does Cygwin contain any tool which enables to decrease a size of jpg file?

--
   =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
 news://news.gmane.org/gmane.comp.lang.c++.perfometer
   =







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



The look utilty

2003-11-25 Thread Alex Vinokur
Does Cygwin provide something like the look utility which works with dictionary?


--
   =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
 news://news.gmane.org/gmane.comp.lang.c++.perfometer
   =






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



struct __ios_flags in c++io.h

2003-11-04 Thread Alex Vinokur
Files
* /usr/include/c++/3.3.1/i686-pc-cygwin/bits/c++io.h
* /usr/include/c++/3.3.1/i686-pc-mingw32/bits/c++io.h
contain struct __ios_flags.

// for ios_base.h
struct __ios_flags
{
  typedef short __int_type;

  static const __int_type _S_boolalpha= 0x0001;
  static const __int_type _S_dec  = 0x0002;
  static const __int_type _S_fixed= 0x0004;
  static const __int_type _S_hex  = 0x0008;
  static const __int_type _S_internal = 0x0010;
  static const __int_type _S_left = 0x0020;
  static const __int_type _S_oct  = 0x0040;
  static const __int_type _S_right= 0x0080;
  static const __int_type _S_scientific   = 0x0100;
  static const __int_type _S_showbase = 0x0200;
  static const __int_type _S_showpoint= 0x0400;
  static const __int_type _S_showpos  = 0x0800;
  static const __int_type _S_skipws   = 0x1000;
  static const __int_type _S_unitbuf  = 0x2000;
  static const __int_type _S_uppercase= 0x4000;
  static const __int_type _S_adjustfield  = 0x0020 | 0x0080 | 0x0010;
  static const __int_type _S_basefield= 0x0002 | 0x0040 | 0x0008;
  static const __int_type _S_floatfield   = 0x0100 | 0x0004;

[---omitted--]

};


>From the design point of view it might be preferable to define
* _S_adjustfield
* _S_basefield
* _S_floatfield
as following :

  ---
  static const __int_type _S_adjustfield  = _S_left | _S_right | _S_internal;
  static const __int_type _S_basefield= _S_dec | _S_oct | _S_hex;
  static const __int_type _S_floatfield   = _S_scientific | _S_fixed;
  ---

--
   =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
 news://news.gmane.org/gmane.comp.lang.c++.perfometer
   =






--
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: C++ Compilers : Comparative Performance Testsuite

2003-11-03 Thread Alex Vinokur

"Gerrit P. Haase" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Alex wrote:
>
> > An algorithm which computes very long Fibonacci numbers
> >
> > http://groups.google.com/groups?selm=bnni5p%2412i47o%241%40ID-79865.news.uni-berlin.de
> >   was used as a performance testsuite
> >   to compare speed of the code produced by various compilers.
>
> > ||
> > |   Digital Mars C/C++ Compiler, STLport 4.5.3
> > ||
> > | Version 8.35n| -   | 0.20 : 0.16 | 0.84 : 0.80 |  3.82 :  3.74 |
> > ||
>
>
> Do you think to use STLport with the Cygwin/MinGW compiler would
> increase perfomance?
>
[snip]

New report which contains STLport with the Cygwin has been posted to 
news:gmane.os.cygwin under title "C++ Compilers : Comparative
Performance Measurement".
See :
* news://news.gmane.org/[EMAIL PROTECTED]
* http://article.gmane.org/gmane.os.cygwin/40086.

--
   =
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
 news://news.gmane.org/gmane.comp.lang.c++.perfometer
   =





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



C++ Compilers : Comparative Performance Measurement

2003-11-03 Thread Alex Vinokur
  C:\WINNT\System32\NTDLL.DLL


   * g++ 3.3.1, Cygwin, STLport 4.5.3
 
 C:\cygwin\bin\cygwin1.dll
   C:\WINNT\System32\KERNEL32.dll
 C:\WINNT\System32\NTDLL.DLL


   * gpp 3.3.2, DJGPP
 
 DJGPP doesn't support dynamic linking.


   * Digital Mars C/C++ 8.35n, STLport 4.5.3
 ---
 C:\WINNT\System32\KERNEL32.DLL
   C:\WINNT\System32\NTDLL.DLL
 C:\WINNT\System32\USER32.DLL
   C:\WINNT\System32\GDI32.DLL



--
   ==
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
 news://news.gmane.org/gmane.comp.lang.c++.perfometer
   ==




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



Printable information in executables

2003-11-02 Thread Alex Vinokur
Executable files contain various printable information.
For instance, list of  used DLLs.

However those files contain neither compiler name nor compiler version.
It seems to be worth including something like "gcc version 3.3.1 (cygming special)" in 
executables.

Next question. Is it possible to add 'user related printable information' to 
executables (through compilation option or something
else)?

--
 =====
   Alex Vinokur
 mailto:[EMAIL PROTECTED]
 http://mathforum.org/library/view/10978.html
 news://news.gmane.org/gmane.comp.lang.c++.perfometer
   =






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



  1   2   >