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
How to Convert HD Video: TS, MTS, M2TS for Portabl
by ailsa123
53 minutes 15 seconds ago
Anything like HyperCam?
by Luckycharm8989
12/11/09 02:08 PM
Thank you for your help
by guaiguai
12/11/09 07:29 AM
What the problem is?
by guaiguai
12/11/09 05:09 AM
Need an database for Dictionary
by shaanspecial
12/09/09 10:19 AM
Who's Online
2 Registered (Jason9527, Summor007), 180 Guests and 28 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91320 Members
24 Forums
58784 Topics
189292 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