Top "Portability" questions

Portable code can be run with little to no modification in multiple environments.

How to do portable 64 bit arithmetic, without compiler warnings

I occasionally use 64 bit arithmetic in an open source C++ library of mine. I discovered that long long serves my …

c++ gcc portability
Portable C++ build system

I'm looking for a good and easy in maintenance portable build system for C++ projects. Main platforms should include Windows (…

c++ build-process portability
Portable end of line (newline)

It's been an unpleasant surprise that '\n' is replaced with "\r\n" on Windows, I did not know that. (…

c++ cross-platform newline portability fstream
How to force use of static library over shared?

In my SConscript I have the following line: Program("xtest", Split("main.cpp"), LIBS="mylib fltk Xft Xinerama Xext X11 …

static portability static-linking scons build-system
What belongs in an educational tool to demonstrate the unwarranted assumptions people make in C/C++?

I'd like to prepare a little educational tool for SO which should help beginners (and intermediate) programmers to recognize and …

c++ c cross-platform portability
What's the difference between "int" and "int_fast16_t"?

As I understand it, the C specification says that type int is supposed to be the most efficient type on …

c integer c99 portability c89
Running Mercurial on a Flash Drive?

So I do a lot of work on a school computer. We can't install anything but we have most of …

mercurial portability usb-flash-drive
How to put log file in user home directory in portable way in logback?

I would like to put log file into user home directory. How to do that in portable way, i.e. …

java logging logback portability
What are alternatives to the Java VM?

As Oracle sues Google over the Dalvik VM it becomes clear, that you cannot implement a Java VM without license …

jvm bytecode portability vm-implementation