clang: error: argument to '-o' is missing (expected 1 value)
时间: 2024-05-25 13:19:33 浏览: 750
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.
阅读全文
相关推荐















