Is there any good tutorials or documentaries on understanding c++ open source programs? I tried looking at vlc and had no clue what was going on so I decided to take a look at regshot which is a much simpler program and still couldn't understand anything. Is there a good book or tutorial or anything that helps with multi-file (and linux based considering they are all packaged to be tar-ed on linux)? I'm not particuarly gifted in c++ but I can hold my own when it comes to writing a relatively advanced piece of code.
Thanks for the help.
Every function, variable, or define called must be defined in some sort or fashion in a file related to location called. Read each line and carefully and slowly understand where and why everything is being called. After a while, you'll get a feel of it, and you should be able to read a majority of the rest of the code with a minor understanding. Not all C++ code is the same, so just because you have experience, doesn't necessarily mean you can jump into any program and understand everything.
I still don't know where to start when I get a gz file. Is there a main program that the compiler starts from like main.cpp? Looking at the makefile doesn't help at all
I think OP is having problems understanding how to read the code, not building it or unpacking it.
The compiler can compile the sources in any order. The only way you can know where the execution starts is by searching main. Conventionally, the entry point is in main.c*, or programName.c*.
Remember that main() isn't necessarily the first function called.
There aren't really any shortcuts to understand code. One option could be emailing the maintainer and politely asking which function performs the action you're interested in.