![]() |
compile problem: unix program to monitor access times
This is my code. As you can see it doesn't do much.
:
#include <iostream>I get the following error when I try to compile: :
lab2.cpp: In function int main(int, char**):The structure is taken straight from my book. My guess is that I'm missing an include file somewhere. If I comment out the time_t lines, the code compiles. The program seems free of syntax errors so I'm not sure what the problem is. Any help is appreciated. |
|
I discovered that stat is already defined in stat.h. From my text I got the impression that I had to define it manually.
For time.h, I might need it eventually but I don't need it for the snippet I posted above. |
time_t is defined in time.h. (I think) Why would you define stat if it is already defined in <sys/stat.h>?
|
| All times are GMT -5. The time now is 1:06 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC