用CodeBlocks编C程序时,如果按默认设置,编写头文件后将头文件加入到主程序(main)后,再build会提示出错
这时需要设置Settings->Global compiler settings->Build options,勾选Explicitly add currently compiling file's directory to compiler search dirs和Explicitly add project's top-level directory to compiler search dirs.
PS: CodeBlocks version:16.01