Qt: MingW编译程序,crt2.o,crtbegin.o,crtend.o,No such file or directory

时间:2022-12-09 15:58:42


Qt MingW编译程序,遇见如下错误提示:

1、:-1: error: cannot find crt2.o: No such file or directory

2、:-1: error: cannot find crtbegin.o: No such file or directory

3、:-1: error: cannot find crtend.o: No such file or directory

Qt: MingW编译程序,crt2.o,crtbegin.o,crtend.o,No such file or directory


解决办法:

从其他电脑拷贝一份缺失的文件,放到对应的目录下即可。

文件的目录:C:\Qt\MingW\Tools\mingw530_32\i686-w64-mingw32\lib(参考目录,以自己电脑Qt安装的实际路径为准)