To install these basic C/C++ developement packages just do:
$ sudo apt-get install build-essential
To test it, just save the C code below in a file like "hello.c"
#include
main()
{
printf ("Hello World!\n");
}
now then compile it:
$ gcc hello.c
and run it:
$ ./a.out
it shoul print "Hello World!"
And thats it you are ready to start developing C/C++ in Ubuntu.
No comments:
Post a Comment