Fedora Core3


 
Thread Tools Search this Thread
Top Forums Programming Fedora Core3
# 1  
Old 08-09-2005
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  
Old 08-09-2005
1. you don't have standard headers installed? try installing development packages.
if your headers are installed somewhere else, you can use:
gcc -I/somewhere/else -o program program.c

2. do you have g++?
you can send c++ files to gcc too, you'll need to link -lstdc++ if you're going to use c++ standard library, though.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

Fedora 14

Anyone know where I can obtain a reliable download of Fedora 14? Every one I have attempted to download charges a fee and a credit card. I have the fee but no credit card. Plus I don't want a prepaid card for just a one-time purchase. :wall: This is how I feel. LOL Any advice? Thank... (4 Replies)
Discussion started by: aeo0868
4 Replies

2. Red Hat

fedora grub help, moving to tri boot (XP, ubuntu, fedora soemething)

I will shortly be adding a fedora flavor to my devel box. I currently have XP (installed first on an ssd), ubuntu 10.04 (installed second on the first partition of a platter drive), and I want to add either Cent or SL on the second partition of the platter drive. I will probably also want to... (0 Replies)
Discussion started by: LMHmedchem
0 Replies

3. Linux

Fedora 9

Hi all, I just installed fedora 9 in my PC. when i go to the terminal and i typed in "ifconfig" to get ip address, it said "command no found" I do need to type in "/sbin/ifconfig" Why do i need to type in /sbin? Another thing, what command do i use to do reverse lookup and checking... (6 Replies)
Discussion started by: c00kie88
6 Replies

4. Linux

Dual Boot Win XP And Fedora with Fedora Installed First

Hi everyone, I hope this question goes here. Anyways, I have a unique situation where my friend's comp has Fedora installed and wants to add Win XP as a dual boot without formatting the drive. Is it possible to create a partition on the current hard drive and then install win xp? I couldn't find... (4 Replies)
Discussion started by: eltinator
4 Replies

5. Ubuntu

Fedora 7

Hi all, Have installed Fedora 7 at home on an oldish Acer 3500. No sound and currently using what I think is a 15inch monitor (not entirely sure). Anyways, was curious to know what others "do" on their home setups. I've been more used to logging into work's HP-UX machines for the most part in... (3 Replies)
Discussion started by: Cameron
3 Replies

6. Linux

new in fedora

how i can format a usb flash memory from fedora i can see the as /dev/sda1 from terminal pls help me (2 Replies)
Discussion started by: sadiquep
2 Replies

7. UNIX for Dummies Questions & Answers

Fedora to be or not to be?

Hiya folks, I been browsing through the forums on information regarding Fedora. I know this is the version I want but what is holding me back now is whether my computer could run it easily? I'am asking this because alot of the forum posts and replies I have read, most of them ask for the... (2 Replies)
Discussion started by: Mr_Pinky
2 Replies

8. Linux

FEDORA HELP(please)

I RECENTLY LOADED FEDORA LINUX ALL 4CD/S(FULL INSTALL). but i am getting no sound,no proper help documentation.what should i do. Please help. (7 Replies)
Discussion started by: ameya_shaligram
7 Replies

9. UNIX for Dummies Questions & Answers

trying to download Fedora Core3 - help pls!

Hiya Guys, damn! Burn't off 4 CD - all bad.... what am I doing wrong???? Downloaded ISO images from 2 mirror sites so far.... Onto my Windows XP laptop at work (ie. thru firewall...) thru Internet Explorer - choosing the FTP:// sites I had 4 downloads going at once.... what am I... (7 Replies)
Discussion started by: marty 600
7 Replies
Login or Register to Ask a Question