cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
ANSI/ISO code and gcc options
ANSI/ISO code and gcc options
Sep 10, 2011 at 12:19am UTC
mpahlevanzadeh
(12)
Dear all,
Suppose i have code, and i want to compile just ansi/iso, -ansi -pedantic is enough for understanding it?
Sep 10, 2011 at 12:25am UTC
helios
(17607)
--pedantic or possibly --pedantic-errors. Two dashes, not one.
The man page says that --pedantic doesn't report all non-ISO practices, so you should be careful about that.
Topic archived. No new replies allowed.