Hi, I use Fedora Core 5 , but how to program C/C++ ?
(this is the first time i use Linux , thanks)
i certainly hope that u have installed gcc package..
type and save the code with some editor,
go to terminal window or the konsole.
go to the directory and give the command
gcc 'filename.extension'
if there arent any errors, u get a file 'a.out'
type './a.out' and execute the code.
in case u wanna tweak the process..like the output filename, u need to use switches.
u can get all the help u want from the manual
type at shell prompt,
man gcc
the page which u get might make u feel uncomfortable at first..
but take the extra effort initially..
u'll know there's no better guide to gcc than that
Assuming that you're using X and want to code for the desktop -
Install Eclipse, it's a nice IDE and supports many, many languages. Just use the package manager to install it, it's included on one of the install CDs / DVD.
Copyright © 2024 Q2A.ES - All rights reserved.
Answers & Comments
Verified answer
i certainly hope that u have installed gcc package..
type and save the code with some editor,
go to terminal window or the konsole.
go to the directory and give the command
gcc 'filename.extension'
if there arent any errors, u get a file 'a.out'
type './a.out' and execute the code.
in case u wanna tweak the process..like the output filename, u need to use switches.
u can get all the help u want from the manual
type at shell prompt,
man gcc
the page which u get might make u feel uncomfortable at first..
but take the extra effort initially..
u'll know there's no better guide to gcc than that
Assuming that you're using X and want to code for the desktop -
Install Eclipse, it's a nice IDE and supports many, many languages. Just use the package manager to install it, it's included on one of the install CDs / DVD.