Computed Values in Preprocessor

2005-09-29 Thread aetherane (sent by Nabble.com)
I have a constant defined, lets call it A: #define A 1 I want to have another constant defined called be such that B=A+2 so you could do: #define B A+2 The issue is that I need B to be computed as the value of A+2, not as "A+2" which will be directly plugged into code where ever B is referenced

Compile Without Libc

2005-09-25 Thread aetherane (sent by Nabble.com)
I am cross compiling an application to an architecture where the libc functions won't really be useful to me. Whenever I try to compile my application, I get the following message "ld: cannot find -lc" After searching the internet, I came to the conclusion that it is looking for libc. Are there