Hi everyone
I am trying to execute a program that uses the C++ timebasestruct_t structure.
I am including <sys/time.h> that should allow me to access this structure. Unfortunately It gives me the follwing meassage when compild with gcc.
timebasestruct_t was not declared in this scope
The problem is not that the system does not have <sys/time.h> installed as then it would come up an error message saying can not find header file.
The code i am trying to compile is as follows
Code:
#include <iostream>
#include <cstdlib>
#include <time.h>
#include <sys/time.h>
#include <sys/types.h>
using namespace std;
int main(int argc, char *argv[])
{
timebasestruct_t startTime ;
cout << "Hello, world!" << endl;
return EXIT_SUCCESS;
}
I am using kdevelop under dedora core 3 linux to run this program.
Any help would be vastly apreciated.