31 2 D:\桌面\工具\分区2\未命名3.cpp [Error] no matching function for call to 'library::library()'
时间: 2023-05-22 17:03:27 浏览: 52
这个错误提示是因为在未命名3.cpp文件中调用了一个名为library的函数,但是函数的参数列表为空,而实际上这个函数应该有参数。因此编译器找不到匹配的函数来调用,导致出现了错误。要解决这个问题,你需要检查一下library函数的定义,看看是否缺少了参数或者参数类型不匹配等问题。如果有需要,你可以贴出library函数的定义,然后我们再一起找出问题所在。
相关问题
44 75 C:\Users\Administrator\Documents\未命名1.cpp [Error] no matching function for call to 'animal::animal()'
这个错误是因为你在创建一个 `animal` 对象时,没有提供任何构造函数,因此编译器无法知道如何初始化对象。你需要在 `animal` 类中定义一个默认构造函数,例如:
```cpp
class animal {
public:
animal() {
// 在这里初始化对象的成员变量
}
// 其他函数声明
};
```
当然,如果你已经定义了其他构造函数,那么编译器将不会为你自动提供默认构造函数。在这种情况下,你需要显式地提供一个无参构造函数,或者使用其他构造函数来创建对象。
18 42 C:\Users\TH8888\Desktop\未命名5.cpp [Error] no matching function for call to 'node::node(void*)'
This error message is indicating that there is no constructor for the class "node" that takes a "void*" parameter. This means that there is likely a line of code that is attempting to create a new instance of the "node" class using a "void*" as the argument, but this is not a valid argument type for the constructor.
To fix this error, you will need to modify the line of code that is creating the new "node" instance to use a valid argument type for the constructor. If you are unsure what the correct argument type should be, you may need to review the documentation for the "node" class or consult with other members of your development team.
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.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)