LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   C and C++ programming (https://www.linuxquestions.org/questions/linux-software-2/c-and-c-programming-24362/)

rao 06-26-2002 08:14 AM

C and C++ programming
 
How to compile and run C and C++ program on Linux

neo77777 06-26-2002 08:28 AM

man gcc
will give you all the info you need.

rao 06-28-2002 07:14 AM

Dear neo77777,
Thankx, but problem is how to run a.out ?

neo77777 06-28-2002 08:26 AM

./a.out

mace 06-28-2002 10:36 AM

vi beer.c
*press letter "i" to start inserting text. then start typing*

/* blah */
main()
{
printf ("gimmi another beer bitch");
}

*after you type this example hit the 'esc' key then ':wq' to save*

*you should be back at the prompt now*

type:
gcc beer.c
./a.out

Mara 06-28-2002 04:34 PM

But why in vi? It's the best method to scare a new Linux (Unix) user...

neo77777 06-28-2002 05:52 PM

Yeah, why vi? why not ed? Let's not start the best editor flame war here. It doesn't matter as long as the opponent understood the idea behind.

mace 06-29-2002 12:34 PM

sorry - it's what i use. so it was easy to type in a hurry. gedit is great also. ae on debian is good - as is pico.

tundra 06-29-2002 01:12 PM

hey hey, i like vi... don't go knocking it ;)

Brion 06-30-2002 12:46 PM

u should give Kdevelop a try. it's a great development environment for C and C++ programs. it basically does everything except the programming for u :)

Mara 07-01-2002 06:35 AM

Kdevelop is nice. Especially for peple used to VIsual * environments.


All times are GMT -5. The time now is 02:29 AM.