How to write compile time warning for user

i want to write a warning for every user that compile my code.

how can i do this?

i am using gnu g++ compiler.
Last edited on
Try #warning

If it's not absolutely necessary though, don't do it (it just clutters the output of the compiler). And if it IS absolutely necessary - don't output a warning, fix the problem!
Well i just want to tell user to compile program on linux terminal for ouput. and not to take ouput in file !
┬┐why do you care how I compile my programs?
Besides, that's quite restrictive.
Topic archived. No new replies allowed.