#include /* * Busted cc -c -fPIC minimal.c && cc -o libminimal.so -shared minimal.o && cc -o minimal -L. -Wl,-R"`pwd`" -lminimal && ./minimal * Works: cc -c -fPIC minimal.c && cc -o minimal minimal.o && ./minimal */ int main(void) { volatile int c = 42; volatile long double x = 1.23; volatile long double y = c; volatile long double z = x + y; printf("x=%.17Lg=%La\n", x, x); printf("y=%.17Lg=%La\n", y, y); printf("z=%.17Lg=%La\n", z, z); return 0; }