You forgot the #include <iostream>.
=20
=20
=20
Ioannis=20
=20
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
<http://www.noicys.f2s.com/>=20
* Alternative URL: http://run.to/noicys
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Adrimort
Sent: Friday, November 16, 2001 1:52 PM
To: dev...@li...
Subject: [Dev-C++] A BIG BIG PROBLEM (AT LESS I THINK SO)
Hi!!! This is my 1st mail to the group. First of all sorry about my
English. I expect you can help me:
=20
I have used DevCpp for 2 months and all was perfect. But last week it
started not to work properly. It compiles perfectly, showing the number
of mistakes (yeah, I'm learning C++) I have, but when I have no
mistakes, and the program is supposed to execute the program, an error
message saying Compiler and linker output appears. The full message is
this:
C:\WINDOWS\TEMP\ccdGLyfb.o(.text+0x50):mpp0202.cpp: undefined reference
to `cout'
C:\WINDOWS\TEMP\ccdGLyfb.o(.text+0x55):mpp0202.cpp: undefined reference
to `ostream::operator<<(char const *)'
C:\WINDOWS\TEMP\ccdGLyfb.o(.text+0x64):mpp0202.cpp: undefined reference
to `cin'
C:\WINDOWS\TEMP\ccdGLyfb.o(.text+0x69):mpp0202.cpp: undefined reference
to `istream::operator>>(int &)'
C:\WINDOWS\TEMP\ccdGLyfb.o(.text+0x89):mpp0202.cpp: undefined reference
to `cout'
C:\WINDOWS\TEMP\ccdGLyfb.o(.text+0x8e):mpp0202.cpp: undefined reference
to `ostream::operator<<(char const *)'
C:\WINDOWS\TEMP\ccdGLyfb.o(.text+0x9d):mpp0202.cpp: undefined reference
to `cin'
C:\WINDOWS\TEMP\ccdGLyfb.o(.text+0xa2):mpp0202.cpp: undefined reference
to `istream::operator>>(int &)'
C:\WINDOWS\TEMP\ccdGLyfb.o(.text+0xe4):mpp0202.cpp: undefined reference
to `cout'
C:\WINDOWS\TEMP\ccdGLyfb.o(.text+0xe9):mpp0202.cpp: undefined reference
to `ostream::operator<<(char const *)'
C:\WINDOWS\TEMP\ccdGLyfb.o(.text+0xf4):mpp0202.cpp: undefined reference
to `ostream::operator<<(int)'
C:\WINDOWS\TEMP\ccdGLyfb.o(.text+0xff):mpp0202.cpp: undefined reference
to `ostream::operator<<(char const *)'
What happens?? What can I do?? I have tried reinstalling the program and
even installing 4.01 version, but it doesn't work.
Thanks for all.
Adri=E1n Fern=E1ndez=20
|