In my experience, compiling under g++ on linux is often much more strict than windows code development programs such as Visual C++. Sometimes code will compile without problems on windows, but will complain about lots of things under g++.
Some of this is due to the settings for the compiler, but I am sorry that it doesn't really help you, as you still have to find all the problems & fix them. Just something to be aware of.
I agree with others - you should provide all the code.