complex ostream

H.J. Lu hjl@lucon.org
Wed Jan 14 00:45:00 GMT 1998


> 
> Hi,
> why does this now suddenly fail with
> 
> /tmp/cca205341.o: In function `main':
> /tmp/cca205341.o(.text+0xf6): undefined reference to `ostream & operator<<<float>(ostream &, complex<float> const &)'
> collect2: ld returned 1 exit status
> 
> Does anybody know what I have messed up?

Ooops. It worked for me:

# gcc c.cc -lstdc++
# a.out
1
9.61
19.36
(-7.2,25.42)

H.J.



More information about the Gcc mailing list