Don't use iostream.h, as it's old, and only there for backwards
compatibility.  If possible, use <iostream> instead.

On 5/25/06, Toni Mueller <[EMAIL PROTECTED]> wrote:
Hello,


I'd like to compile a small C++ program (part of building the HylaFAX
port). This is the program:

-------------------------
#include "iostream.h"
int main(){ cout << "Hello World!" << endl; return 0;}
-------------------------

Compiling it goes like this:

$ c++ testit.cc
/tmp//cch21612.o(.text+0x1c): In function `main':
: undefined reference to `endl(ostream&)'
/tmp//cch21612.o(.text+0x29): In function `main':
: undefined reference to `cout'
/tmp//cch21612.o(.text+0x2e): In function `main':
: undefined reference to `ostream::operator<<(char const*)'
/tmp//cch21612.o(.text+0x37): In function `main':
: undefined reference to `ostream::operator<<(ostream& (*)(ostream&))'
collect2: ld returned 1 exit status


I've searched for any libstdc++.so and friends, and also found them
where I'd expected them, but that seems to be insufficient.

Running ldconfig doesn't improve things.


What gives?


Best,
--Toni++

Reply via email to