CodeBlock 因为文件过多导致.o文件信息过长 从而导致gcc链接的时候失败。
结局方法按照如下描述 选择Use flat objects,去掉full path的选项,就可以把.o文件全部弄到一个文件夹去,从而减少很多路径信息。
Go "Settings->Compiler->["Other settings" tab]" and click "Advanced options". In the dialog that pops up, go to the "Others" tab and look near the bottom:
- Use flat objects
- Use full paths for source files (GDB workaround)