This is the mail archive of the gcc-bugs@gcc.gnu.org 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]

Solution found to gcc 2.95.2 problem on HP-UX 11.0


Hello,

Yesterday I sent an e-mail to report a probem to compile the following program
with gcc 2.95.2 on HP-UX 11.0

#include <iostream>
#include <list>
#include <string>

int main(int argc, char *argv[])
{
list<int> int_list;
string message = "list size : ";

int_list.push_back(1);
cout << message << int_list.size() << endl;
return 0;
}

This program compiles perfectly if we swap the <list> and <string> #include
directives.
In fact, I think the system file <sys/_size_t.h> must be missing in <list> or in
 the files it includes, whereas it is included in <string>.

Regards,

J.F. JESSEL



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