GB binary and text files using C++ builder

Hi,

    I'm trying to write a text file or binary file using fstream, but I cannot exceed the limit of 2GBs.  Is there anyone that can help me?

P.S.
I compiled the same code using VC++ and it works fine.

Thanks to anyone can help me.