clang: error: argument to '-o' is missing (expected 1 value)
时间: 2024-05-25 09:19:33 浏览: 26
This error occurs when you are trying to compile a program using the Clang compiler and have not provided a filename for the output binary. The "-o" option is used to specify the name of the output file, but you need to provide a filename as an argument.
To fix this error, you need to provide a filename after the "-o" option. For example, if you want to compile a program called "my_program.c" and name the output file "my_program", you would use the following command:
clang my_program.c -o my_program
This will compile "my_program.c" and create a binary file called "my_program". Make sure to replace "my_program.c" and "my_program" with the actual names of your source file and desired output file.
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)