This is the mail archive of the mailing list for the GCC project.

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

problem with time.h

I recently installed gcc from with swinstall
first I installed binutils version : binutils-2.10.1-sd-10.20.depot
then gcc version : gcc-2.95.2-sd-10.20.depot

then I wrote a simple test program:
#include <iostream>
#include <string>
using namespace std;

int main()
 cout << "Geef twee regels tekst: ";
 string s,t;
 getline(cin,s,'\n');  getline(cin,s,'\n');
 cout << "Uitvoer in alfabetische volgorde:\n";
 if (s < t)   cout << s << endl <<  t <<endl;
 else   cout << t << endl <<  s <<endl;
 return 0;
these are the errors
In file included from /usr/include/sys/resource.h:21,
                 from /usr/include/sys/wait.h:83,




                 from test.c:2:
/usr/include/sys/time.h:337: `extern' can only be specified for objects
and functions

I also wrote another program, with no strings, it compiled and it work

now, what I did is, the last error line says there's a fault at line 337
with the word extern
this is what is said in the header file at line 336 -338:
        extern struct sigevent;
#   endif /* _SYS_SIGEVENT_INCLUDED */

if I remove the word extern, the program works all fine.

I have'nt tested out with other progs, but maybe this is a problem you
know of, and I must do something else to fix it


/*-     steven geerts (       /*-
/*-     junior consultant -EvoSoft -                          /*-
/*-     I will not send lard through mail -- bart s  --  /*-

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