Compatible Support Forums: utilisation gcc

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

utilisation gcc

#1 User is offline   Bahamut 

  • stranger
  • Group: Members
  • Posts: 4
  • Joined: 14-April 03

Posted 18 April 2003 - 11:09 PM


0

#2 User is offline   nebulus 

  • enthusiast
  • Group: Members
  • Posts: 214
  • Joined: 05-October 02

Posted 19 April 2003 - 10:54 PM

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
0

#3 User is offline   gvissers 

  • stranger
  • Group: Members
  • Posts: 24
  • Joined: 15-April 03

Posted 23 April 2003 - 09:54 AM

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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users