7.x Compatibility

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

 



Hi Dennis,

[root@xxxxxxxx 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@xxxxxxxx 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@xxxxxxxx root]#

Any idea?


Thanks.

--T. Muthu Mohan


-- 
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux