It would save me some time if you were to post your working code. Is there any additional includes needed or type casting to eliminate warnings?
I don't clearly see what working code you're expecting from me. I have none except the one I fixed for VS2013 and uploaded here.
I repeat I do not have a 64-bit TDM GCC installed to run the compilations myself. As I understood from you previous messages, you secceeded in compiling the original TS code into a genuine 64-bit executable
without warnings using your installation of 64-bit TDM GCC for Windows, and the only issue you're having now is printing your math with correct bitness.
So why don't you do as I suggest in my earlier message: overwrite (or rem out temporarily) the old code with what I offered and recompile. I think it will make your print work as expected. As simple as that - no warnings and working print in a 64-bit TS when compiled with TDM GCC. Just forget VC and my submission if TDM GCC is so smart as to turn the sources to 64 bits automatically
except the format strings that I fixed for you manually. If this works as expected then you can add conditional compilation to these two print portions with
#ifdef WIN32 and keep the original %l's for Linux. This will conform to your principle of one source for all platforms and bitnesses.