cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
How to write compile time warning for us
How to write compile time warning for user
Aug 5, 2012 at 11:11am UTC
unkn00wn
(71)
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
Aug 5, 2012 at 11:12am UTC
Aug 5, 2012 at 12:04pm UTC
hanst99
(2869)
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!
Aug 6, 2012 at 8:54am UTC
unkn00wn
(71)
Well i just want to tell user to compile program on linux terminal for ouput. and not to take ouput in file !
Aug 6, 2012 at 9:49am UTC
ne555
(10692)
¿why do you care how I compile my programs?
Besides, that's quite restrictive.
Topic archived. No new replies allowed.