This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


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

G++/times causes access violation


When the following code

# include <sys/times.h>
# include <iostream.h>
int main()
{
  clock_t ElapsedSystemTime;
  ElapsedSystemTime=times(NULL);
  cout << ElapsedSystemTime <<"/n";
  return 0;
}

is run, I get an access violation.  I adapted this from Tom Swan's (sp?) G++ on Linux book.  Am I doing something silly here (I'm at a fairly early stage of C++ programming and no C experience whatsoever)?

TIA,

Mirko




--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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