Home » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » So many preprocessor defines for platform !
Re: So many preprocessor defines for platform ! [message #39642 is a reply to message #39640] |
Fri, 12 April 2013 08:21 |
|
It all depends on what exactly you need to do, i.e. what platform specific code you need to write. U++ in itself is ready to be used in multiplatform applications. And if you plan to use some low level stuff, which can be very specific, you can always use directly the macros defined by the compiler (e.g. _WIN32 in MSVC or __linux for GCC on linux).
Also, you mention compiling on various systems vs. cross-compiling. I think these days the best choice is to use virtualbox, wmware or some other virtualization tool and just create virtual machines for all the target systems. In some cases you don't even have to go as far using virtualization, e.g. windows builds can be easily done using Wine + windows version of TheIDE.
Honza
|
|
|
Goto Forum:
Current Time: Tue May 14 11:46:48 CEST 2024
Total time taken to generate the page: 0.01925 seconds
|