Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/136.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 未定义对函数的引用,但我的函数是我在cmake中使用命令target_link_libraries链接的库的一部分_C++_Cmake_Libraries_Undefined Reference - Fatal编程技术网

C++ 未定义对函数的引用,但我的函数是我在cmake中使用命令target_link_libraries链接的库的一部分

C++ 未定义对函数的引用,但我的函数是我在cmake中使用命令target_link_libraries链接的库的一部分,c++,cmake,libraries,undefined-reference,C++,Cmake,Libraries,Undefined Reference,我有一个需要CVB的项目,所以我将Cmake中的CVB库和main.hpp中包含的标题链接起来。然而,这些库中CVB的函数还没有定义,我不明白为什么。如果有人可以帮助我,谢谢。我找到了解决方案,因为我必须在x32上运行它,而在x64中没有。链接顺序可能不正确。请向我们展示您的CMakeLists的相关部分。TXT请回答您的问题,而不是使用注释添加此信息。

我有一个需要CVB的项目,所以我将Cmake中的CVB库和main.hpp中包含的标题链接起来。然而,这些库中CVB的函数还没有定义,我不明白为什么。如果有人可以帮助我,谢谢。

我找到了解决方案,因为我必须在x32上运行它,而在x64中没有。

链接顺序可能不正确。请向我们展示您的CMakeLists的相关部分。TXT请回答您的问题,而不是使用注释添加此信息。