This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Solution found to gcc 2.95.2 problem on HP-UX 11.0
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Solution found to gcc 2.95.2 problem on HP-UX 11.0
- From: jjessel at amadeus dot net
- Date: Tue, 14 Mar 2000 15:31:33 +0100
- cc: bug-gcc at gnu dot org
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