makefile question

Started by
11 comments, last by ProblemBaby 18 years, 3 months ago
I want to be able to do like

int a = RANDOM("132");

int b = RANDOM("56");


and the macro runs the program with the specified parameter and a and b gets the output
Problems every where
Advertisement
Not going to work; it's the wrong way around. The preprocessor can't invoke programs.

Is there a reason you can't just do it at runtime? What *exactly* are you trying to do? I really can't think of why you would want to produce a different "randomized" executable each time you compile the same code o_O
I want a program to solve for different things of course it shouldn't run at runtime, but if the parameter is constant wouldn't it be possible to run the program with the specified parameter and let a variable be equal to the output? depeding of the parameter
Problems every where

This topic is closed to new replies.

Advertisement