Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Conditional compilation in C

Name: Anonymous 2012-02-05 5:05

How exactly does conditional compilation works in C?

I'm using GMP to do some calculations in a C program;
but if GMP isn't available in the machine, I could do the calculations with some handmade functions.

Any help would be great. Thanks in advance!

Name: Anonymous 2012-02-05 13:51

>>21
Responding to a substandard troll, but..
With only compile-time checking, a binary build with GMP support will not run on a machine without GMP installed (unless you're linking statically, which you shouldn't). With runtime checks, you can gracefully fall back with reduced functionality.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List