royqh1979 / RedPanda-CPP

A light-weight C/C++ IDE based on Qt
GNU General Public License v3.0
996 stars 108 forks source link

Windows下配置clang作为编译器,编译报错 #460

Open ngugcx opened 5 months ago

ngugcx commented 5 months ago

Debug编译报错:

[Error]  linker command failed with exit code 1104 (use -v to see invocation)

Release编译报错:

[Warning]  argument unused during compilation: '-s' [-Wunused-command-line-argument]
[Error]  linker command failed with exit code 1181 (use -v to see invocation)

clang版本:18.1.6

QingWanNiang commented 3 weeks ago

编译器设置进行如下修改:不要勾选任何参数 直接就是执行clang <源码文件> -o <目标文件> 如果运算量比较大可以额外勾上一个优化等级最大(-ofast)