I’m currently porting some windows code and trying to make it available for use in Ubuntu. The project was originally compiled in VC++ without any issues. Also I should note that this only needs to work in Ubuntu, but more platform independent ideas are certainly welcome.
Most of the code is easy to port as it is mostly a numerical simulation project with few OS specific parts. There is no UNICODE used in the ported version and there is not going to be any need to support this.
I’d like to know what the best practices are when trying to get this code to compile with GCC, in particular:
What is considered to be the best replacement for: __int64, _tmain and _TCHAR* ?
Thanks!
For the 64-bit:
As for the TCHAR problem. I actually find TCHARs rather useful so I have a file with all the _t functions I use in it.
e.g
as for the _s functions basically … I implemented them. It takes about an hour of coding to do but it makes porting projects to other platforms or compilers IMMENSELY easier.