Lessons learned:
1) Don't use fscanf, use fgets as this pointed out. (However, it's not that disasterous if you know how to use it and the format of the file).
2) Don't use -g and -O2 at the same time. -c and -O2 don't seem to work well with each other.
3) gdb tutorial (~1hr reading and 1hr playing around) : http://www.cs.cmu.edu/~gilpin/tutorial/
1) Don't use fscanf, use fgets as this pointed out. (However, it's not that disasterous if you know how to use it and the format of the file).
2) Don't use -g and -O2 at the same time. -c and -O2 don't seem to work well with each other.
3) gdb tutorial (~1hr reading and 1hr playing around) : http://www.cs.cmu.edu/~gilpin/tutorial/
No comments:
Post a Comment