weirdo problem: segfault in locale::_Impl
Branko
Branko
Wed Jun 14 10:19:00 GMT 2000
Rob Taylor wrote:
> #include <iostream>
> #include <stdlib.h>
^^^^^^^^^^^^^^^^^^^ what for?
>
> int main(int argc, char *argv[])
> {
> std::cout << "Hello World\n" << std::endl;
^^ ^^^^^^^^^ why both?
> return 1;
> }
>
> with
> g++ main.c -o main
^ ?
> (doent get more simple a case, huh?!)
(Yeah, I'm too pedantic again ...)
Your test works fine for me. What platform ar you using? configure
flags? GCC version? static or dynamic link? output of `locale`?
What happens if you try "the" minimal hello-world program:
#include <iostream>
int main()
{
std::cout << "Hello World\n";
}
?
--
Branko Čibej <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49 fax: (+386 1) 586 52 70
More information about the Libstdc++
mailing list