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

7.x Compatibility



Hi Dennis,

[root infinity root]# cat hello.cpp
#include <iostream>
#include <fstream>
#include <string>
//using namespace std;
int main(int argc, char *argv[])
{
        std::cout << "Hello World!" << std::endl;
        return 0;
}

[root infinity root]# gcc296 hello.cpp
/tmp/ccpkA5p7.o(.text+0xa): In function `main':
: undefined reference to `endl(ostream &)'
/tmp/ccpkA5p7.o(.text+0x17): In function `main':
: undefined reference to `cout'
/tmp/ccpkA5p7.o(.text+0x1c): In function `main':
: undefined reference to `ostream::operator<<(char const *)'
/tmp/ccpkA5p7.o(.text+0x27): In function `main':
: undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
collect2: ld returned 1 exit status
[root infinity root]#

Any idea?


Thanks.

--T. Muthu Mohan




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