I think the subject is self explanatory.

I am going to talk about two options of gcc.

-Wall is for warnings. Your code should compile without any warnings.
Throw away useless variables
 or comment them out and do appropriate typecasting when you have
const char * and char * and similar.

-g is for generating debug symbols so you can use the executable with gdb(1).

I don't think I need to talk more than this.

If you do a file a.out or file foo where foo is the executable, it should say
"Not stripped". Otherwise gdb will not be able to help you much.

That is ensured by -g. Also the command strip(1) will remove debug symbols.

The other thing you can do to figure out why some symbols don't
resolve is nm(1).

It is too much for a tip. ;)

-Girish

-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com
_______________________________________________
To unsubscribe, email [email protected] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to