[ Ubuntu-BD ] writing C program in Ubuntu
Tarin Mahmood
tmahmood at arenamobile.com
Tue May 27 06:23:02 BST 2008
You can use SDL for Graphics stuffs, its cross-platform and very easy to
learn/use. I discourage you to use graphics.h/conio.h as its dos based and
really backdated.
Install Anjuta its a good IDE for the beginners. You'll have to install few
other dependencies too. If you don't want to do that use gcc from terminal
Also you can eclipse with C/C++ support, its very powerful
Personally I use Vim, but I won't suggest you as it have a steep learning
curve, but when you get to use it its very powerful :)
to compile with default
gcc filename.c
In this case run the executable by
./a.out
to get all warnings use
gcc -Wall filename.c
for debugging option use
gcc -g filename.c
and finally
gcc -o Test filename.c
this will build the executable as Test, you'll have to run using
./Test
also learn to use makefile they are very usefull when you get to use them
Thats for start, gcc have many options, to Debug use gdb in terminal or
nemiver
On Tue, May 27, 2008 at 9:27 AM, nasir khan <nasir8891 at gmail.com> wrote:
> I am learning C programming.
> Now i want to know how to use gcc or is there any better application to
> write C programs, where I can use graphics and other options.
>
> --
> [saikat]
> --
> ubuntu-bd mailing list
> ubuntu-bd at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-bd/attachments/20080527/49c4eea4/attachment.htm
More information about the ubuntu-bd
mailing list