Ramin NIkaeen wrote: >If someone can give me any pointers as to the cause of the problem, >I will be very thankful. > > Please use g++, not gcc, since yours is a c++ program. Paolo.