Builder C++ large files support for simple C program
I had to write a C program and ran it on Solaris server(only command line access). It seemed to me that it was easier to debug program on my notebook under Windows and then with minor modifications copy it to the server and ran.
I wrote a program at C++Builder 6.
Hovewer, there some inconsistencies between Borland and Unix <sys/stat.h> library. CC in Solaris offers functions like stat64, fseeko64 etc which designed to work with large files > 2Gb... but in Builder I can find only standard stat, fseek, etc,
At first, I debugged program on my Windows PC with small files. Hovewer, now I when I run the program on the server, sometimes I get "Core dump" error especially for very large files. It seems a kind of overflow. But I can't test program in a good debugger in Windows because of Builder <sys/stat.h> problem.
Pleese, give me advise, what is the easiest way to solve this