Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ngugcx opened this issue Jun 19, 2024 · 1 comment
Open

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

ngugcx opened this issue Jun 19, 2024 · 1 comment

Comments

@ngugcx
Copy link

ngugcx commented Jun 19, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants