Strict compiler flags

C:

-std=c99 -O2 -g -pipe -Wall -Wextra -Werror -pedantic-errors

C++:

-std=c++0x -O2 -g -pipe -Wall -Wextra -Werror -pedantic-errors

Best practices

Tools

Windows

To link against the release MSVCRT but include debugging information (.pdb files) make sure to select the “Release” configuration in Visual Studio and configure the project to use the following flags:

Reading List