Fedora Core3

This is a discussion on Fedora Core3 within the C++ Programming forums, part of the General Programming Boards category; Hello to all. I'm running Fedora Core3. Two Questions. 1. I wrote a simple C program starting: # include <stdio.h> ...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    3

    Fedora Core3

    Hello to all.
    I'm running Fedora Core3.
    Two Questions.

    1. I wrote a simple C program starting: # include <stdio.h>
    I gave it to the compiler: gcc -o program program.c and got
    stdio.h: no such file or directory, although it did compile this simple
    program, I'm sure when stdio.h is needed,it won't.
    I looked in /usr/include and sure enough it wasn't there.

    2. I have tried for weeks to compile C++ on the same OS I have used every
    conceivable combination to try to invoke the compiler.
    I know it's in there, but where? In Red Hat 7 it was easy: g++ program.cpp
    Again I looked in /usr/include and there it was C++

    Any help would be much appreciated

  2. #2
    C++/Graphics Artist
    Join Date
    Aug 2005
    Location
    USA
    Posts
    10
    Not too sure if this is the best option, but why dont you just download that header file off the internet and move it into that directory yourself? Seems fairly simple...
    .//website | .//anime | .//design
    - Project Crimson Blade - Text-based MMORPG. Powered by MySQL and PHP.
    - Web Blog: http://rylem.blogspot.com
    -----------------
    Primary OS: Windows 2000 Professional SP4
    Secondary OS: Ubuntu Linux 5.4 (Will be Fedora Project Core 4)
    Purpose: Multi-purpose programmer, artist, and designer.

  3. #3
    *this
    Join Date
    Mar 2005
    Posts
    498
    I use g++, why not install g++ ?

  4. #4
    Registered User
    Join Date
    Jul 2005
    Posts
    3
    For JoshR
    How do I install g++ ?

  5. #5
    *this
    Join Date
    Mar 2005
    Posts
    498
    Well for me, I use ubunutu (a debian based linux) so I can type: apt-get install g++

    Check out this page, appearently it comes with gcc so you might want to re-install gcc or just install this one over your current gcc:
    http://directory.fsf.org/GNU/gpp.html

  6. #6
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    you probably didn't select the development tools package when you installed. If you still have the install CDs you can install that stuff from there. If not, try up2date <package-name> or yum install <package-name> .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 05-13-2009, 12:57 PM
  2. Replies: 7
    Last Post: 05-02-2009, 11:34 AM
  3. Fedora Forum Corrupt?
    By CompanionCube in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-25-2009, 03:58 AM
  4. Fedora 9 - Instability
    By Mario F. in forum Tech Board
    Replies: 16
    Last Post: 09-30-2008, 09:55 PM
  5. Can't login to Fedora
    By Pyroteh in forum Tech Board
    Replies: 14
    Last Post: 07-13-2005, 01:13 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21