[Ilugc] Problem in compiling c++ programs in Fedora Core 3 (x86-64)

  • From: s.varun@xxxxxxxxx (Varun Soundararajan)
  • Date: Wed Dec 22 23:41:37 2004

I understand that the problem is with non availability of include
files or something lke that. I installed all the tools in development,
 including those c++ ones. Can you tell me what are the necessary
files/rpms to make c++ work in FC3 (x86-64).
-Varun


On Wed, 15 Dec 2004 17:39:04 +0530, Varun Soundararajan
<s.varun@xxxxxxxxx> wrote:

Hi,
Google and Fedora list didnt help me.
I installed fedora core 3 (x86-64) and tried the following:

=============================================
[varun@varun ~]$ cat test.cpp
#include <iostream>
using namespace std;
int main()
{
        cout<<"Hi";
        return 0;
}
[varun@varun ~]$ g++ -otest test.cpp 2>out.log
[varun@varun ~]$ vi out.log
[varun@varun ~]$

==============================================
In file included from test.cpp:1:
/usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../../include/c++/3.4.2/iostream:44:28:
bits/c++config.h: No such file or directory
In file included from
/usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../../include/c++/3.4.2/ios:44,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../../include/c++/3.4.2/ostream:45,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../../include/c++/3.4.2/iostream:45,
                 from test.cpp:1:
/usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../../include/c++/3.4.2/iosfwd:46:29:
bits/c++locale.h: No such file or directory
/usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../../include/c++/3.4.2/iosfwd:47:25:
bits/c++io.h: No such file or directory
In file included from
/usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../../include/c++/3.4.2/ios:46,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../../include/c++/3.4.2/ostream:45,
                 from
/usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../../include/c++/3.4.2/iostream:45,


-Varun

Other related posts: