问题现象:
一般会提示某个.o文件无法识别,出现这种现象的原因通常是编译时异常退出等导致的文件不完整。
解决方法:
clean 之后生成或直接rebuild即可
collect2.exe 参考自stackoverflow
collect2 is a utility used to generate a table of constructors that __main (an auto-generated function called at the beginning of main) depends on. Normally you don’t see it because it’s named ld on the file system, and it in turn calls the real ld (typically called real-ld, although collect2 will check a number of places looking for it)