- -o : name the output file.
- -Wall : all warnings.
- -pedantic : follow strict ISO C++ rules.
- -Weffc++ : follow Scott Myer's Effective C++ solutions.
Showing posts with label compiler. Show all posts
Showing posts with label compiler. Show all posts
Sunday, April 17, 2011
g++ command line options
'NULL' was not declared in scope
(and cout, for that matter).
- For NULL: use #include
or - For cout: use the scope operator: std::cout or put 'using std::cout' at the top of the file.
Subscribe to:
Posts (Atom)