How are you debugging your code? For using gdb or outside deuggers you will have to provide other main ans supporting functions!ctions!