utilisation gcc

comment on utilise gcc ??? j'ai crée un fichier en C, puis j'ai tapé gcc tmp.c en sortie j'ai un fichier a.out et après ??? comment je lance ce que j'ai compilé ???...




Topic Options
#1720 - 04/18/03 11:09 PM utilisation gcc
Bahamut Offline
stranger

Registered: 04/14/03
Posts: 4
comment on utilise gcc ???
j'ai crée un fichier en C, puis j'ai tapé
gcc tmp.c
en sortie j'ai un fichier a.out et après ???
comment je lance ce que j'ai compilé ???

Top
Advertisement
#1723 - 04/19/03 10:54 PM Re: utilisation gcc
nebulus Offline
enthusiast

Registered: 10/05/02
Posts: 214
1) to compile:
Code:
gcc -o output_file source.c

2) to run:
Code:
./output_file


PS: type "man gcc" if you need more information

Top
#1732 - 04/23/03 09:54 AM Re: utilisation gcc
gvissers Offline
stranger

Registered: 04/15/03
Posts: 24
Bahamut,

The gcc compiler names it's output file by default a.out . To run it, you can
just type

./a.out

To force gcc to give the output file another name, you can use the -o flag
as nebulus suggested. And yes, you will find that for many programs on
your Linux system there are man pages. Although they are not always
easy to read, they contain a wealth of information.

G

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
x86 OS, RAM, & Virtual Machines
by Myke
Yesterday at 08:16 PM
Ram Question
by JohnnyAshes
12/21/09 09:50 PM
NEWBIE needs help with REALTEK
by SerryJW
12/21/09 06:09 AM
What version of Linux is this?
by DxxLinux
12/15/09 07:59 PM
Anything like HyperCam?
by Luckycharm8989
12/11/09 02:08 PM
Who's Online
1 Registered (Korawolf), 228 Guests and 37 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91374 Members
24 Forums
59197 Topics
189719 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

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