Well,
i'm not sure where to find specific documentation for linux programming (you can always try to google for something specific).
what i can give you is a general idea on how to start.
first of all, every linux command (wether it is in programming or a command you write in the command prompt) has documentation. usually you find the documentation in the linux manual.
to access a certain command write 'man command' without the ' '.
for example if i want to find information about a command called write i'll write
in write's example, however, we have a problem. write is a shell command and a programming command too.
if you write 'man write' it will give you the first result found meaning the shell command write and not the programming command.
to solve this the man is divided into sections.
sections 1-4.
1 is for shell commands, 2,3 are for programming commands (not sure about the difference here maybe someone else can tell me too) and not sure what 4 is for either.
if you want to find the shell command 'write', write
1 stands for section 1
and if you want to find the programing command 'write', write
if you're not sure which section is the command you want, you can write
that will open all available manual pages for write. after you close the first one, the other will open and so on...
remember: the manual is your friend. it can help you a lot if you use it right.
you can also run a search on the internet in the same way.
sometimes when i have problems with the manual, i go to google and write
and it directs me to an online linux man page. very useful at times.
this is for using the manual.
now the compiler in linux is called gcc.
u can use it to compile c code. for compiling c++, use g++ which is gcc for c++.
u can write 'man gcc' or search the internet for using gcc because explaining it full is way too long to be written in a post.
to make life easier though, a utility called make was introduced.
make uses an input file you can write to automatically compile and link files to your request. look for information about it too.
if anyone can provide appropriate links, that would be good.
this is all you need to start. (at least what i needed). if you have more questions, please ask.
ohh 2 more things:
1) to run a file you created (binary files you compiled and linked) write
the./ is important.
2) if you have permission problem executing the code, you need to change the permissions.
use chmod to do this (more info at....that's right 'man chmod'
)
good luck