[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#134315: iostream.h does not like -fPIC



On Sun, Feb 17, 2002 at 06:37:05AM +0100, Arjen Hommersom wrote:
> Package: gcc
> Version: 3.0.3-1
> 
> This script:
> 
> #!/bin/sh
> 
> cat > /tmp/test.cc << EOF
> #include <iostream.h>
> 
> int main(void)
> {          
>            return 0;
> }
> EOF
> cd /tmp
> gcc -o /tmp/test -fPIC /tmp/test.cc -lstdc++
> /tmp/test
> rm -rf /tmp/test.cc
> rm -rf /tmp/test
> 
> results in a segmentation fault.
> 
> This is in Debian GNU/Linux 3.0, kernel 2.4.17-pa11 and libc6 
> 2.2.5-3.0.1 on the hppa architecture.

Does this still happen if you compile the C++ with g++?

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



Reply to: