CompileError: missing ) after argument list
时间: 2024-04-25 20:23:54 浏览: 113
这个错误是由于在代码中缺少了一个闭括号导致的。根据引用[2]和引用[3]的内容,可以看出这个错误可能是在onclick事件的传参中出现的。在引用[2]中,使用了转义符对参数进行转义,而在引用[3]中,没有使用转义符。因此,可以尝试在onclick事件的传参中添加一个闭括号来解决这个错误。例如:onclick="addFn('${res.src}','${res.name}','${res.price}',1)"。这样就可以正确传递参数并避免出现缺少闭括号的错误。
相关问题
clang: error: argument to '-o' is missing (expected 1 value)
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.
阅读全文