草庐IT

EXPORT_SYMBOL_GPL

全部标签

c++ - 体系结构 x86_64 的 G++ undefined symbol

我正在学习C++,并接到了创建Vector3D类的作业。当我尝试在OSX上使用G++编译main.cpp时,出现以下错误消息。为什么会这样?g++main.cppUndefinedsymbolsforarchitecturex86_64:"Vector3DStack::Vector3DStack(double,double,double)",referencedfrom:_mainincc9dsPbh.old:symbol(s)notfoundforarchitecturex86_64main.cpp#include;#include"Vector3DStack.h";usingnam

c++ - Lua:C++ 模块不能互相引用, undefined symbol

我创建了两个模块(共享对象)CPU和SaveState作为模拟器的一部分。两者都独立编译成.so单独的文件,并在运行时由Lua脚本使用require()加载;即:SaveState=require("SaveState")CPU=require("CPU")在CPU中,有一个对SaveState进行操作的方法:intCPU::save_state(SaveState*state){state->begin_section(savestate_namespace,savestate_data_size);state->write16(this->reg.af);state->write1

python - 关于boost-python : dyld: Symbol not found: _PyBaseObject_Type

当我运行我的代码时,我遇到了一个关于boost-python的问题。就像这样:dyld:Symbolnotfound:_PyBaseObject_TypeReferencedfrom:/opt/local/lib/libboost_python-mt.dylibExpectedin:flatnamespace我的项目几个月前就可以正常运行了。但是现在,当我重新配置环境时,它无法运行。-几个月前,我用homebrew配置环境,就像这样:brewinstallboostbrewinstallpythonbrewinstallboost-pythonbrewinstallopencv(Myp

c++ - 防止 Boost Spirit Symbol 解析器过早接受关键字

当以有效关键字(符号)开头时,如何防止BoostSpirit符号解析器接受关键字(符号)。我希望该构造无法将“ONEMORE”作为一个整体进行解析,并且无法成功解析“ONE”,因为这是一个有效的关键字,然后在“MORE”上失败。下面是代码的实际输出:Keywordasanumber:1Keywordasanumber:2Keywordasanumber:1Invalidkeyword:MORETHREE这就是我喜欢的样子:Keywordasanumber:1Keywordasanumber:2Invalidkeyword:ONEMOREKeywordasanumber:3该代码只是一个

c++ - OSX 10.7.5 上的 node-gyp -- dyld : lazy symbol binding failed: Symbol not found

我搜索了很多,我发现最接近同一个问题的是这个(也是未回答的)问题:Symbolnotfound:_libintl_gettext我正在尝试为libpuzzle制作一个薄的C++包装器。$node--versionv0.8.18$npm--version1.2.4$node-gyp--versionv0.8.3Sourcecodeongithub正在尝试构建(我用...手动缩短了路径)$node-gypcleanconfigurebuild&&nodetest.jsgypinfoitworkedifitendswithokgypinfousingnode-gyp@0.8.3gypinfo

c++ - GCC 优化在运行时产生 "Undefined symbol"

我现在有一个让我很困惑的问题:我有一段用C++编写的软件,它链接到C中的一个库。我使用通常的方式包含头类extern"C"{#include}只要我不使用gcc的优化,一切都可以正常工作。一旦我什至打开-O1,因此是第一个优化级别,在运行时我从这个库中得到一个符号的“undefinedsymbol”错误。但是,该名称已经过名称修改,由于extern"C",应该将其禁用。调用相关符号的函数是内联的,以防万一。使用的编译器是gcc4.4.3。老实说,我什至不知道要搜索什么,所以如果你们中的任何人能给我一些这种行为的理由,我将不胜感激。感谢您的支持。 最佳答案

c++ - 错误 : LNK 2019 : unresolved external symbol _imp_CrtDbgReportw in Visual Studio

我编写了一个程序,在出现相应的分隔符时拆分字符串。但是发生了一个不同的错误,例如:Error1errorLNK2019:unresolvedexternalsymbol__imp___CrtDbgReportWreferencedinfunction"public:charconst&__thiscallstd::_String_const_iterator>>::operator*(void)const"(??D?$_String_const_iterator@V?$_String_val@U?$_Simple_types@D@std@@@std@@@std@@QBEABDXZ)So

c++ - 链接器错误 - 带有 libboost_thread 的 macOS 上 undefined symbol std::string::c_str() const?

我从homebrew安装了boost1.55.0在macos小牛队上。获取链接器异常-找不到std::string::c_str(),我不明白为什么。这可能是Homebrew软件的问题吗?我尝试直接从boost编译boost1.55.0,它甚至没有在macOS上构建。这段代码:#include#include#include#includetypedefstd::unordered_mapStringMap;staticboost::thread_specific_ptr>rlist;intmain(){return0;}使用此命令行编译:g++-std=c++11main.cpp-I

c++ - 链接器错误 : undefined reference to symbol 'pthread_rwlock_trywrlock@@GLIBC_2.2.5'

我一直在使用CentOS、Qt4.7和GCC4.4进行开发我刚刚安装了包含GCC4.7.2的RedHatDeveloperToolset1.1,在make结束时,我收到一个错误/usr/bin/ld:../../bin/Solo:undefinedreferencetosymbol'pthread_rwlock_trywrlock@@GLIBC_2.2.5'/usr/bin/ld:note:'pthread_rwlock_trywrlock@@GLIBC_2.2.5'isdefinedinDSO/lib64/libpthread.so.0sotryaddingittothelinker

ios - 架构 armv7 : "_OBJC_CLASS_$_UBSDKConfiguration", 的 undefined symbol 引用自

我的应用程序包含许多第三方SDK,如Facebook、Google+、GoogleAnalytic等。在iOS7到最新的iOS10.xbeta上,一切都运行良好现在我想整合UberRidesSDK在我的申请中。由于UberRidesSDK支持“高于iOS8.x”,我更新了我的应用程序并提供了高于iOS8.x的支持能力。现在我收到错误Undefinedsymbolsforarchitecturearmv7:"_OBJC_CLASS_$_UBSDKConfiguration",referencedfrom:objc-class-refinAppDelegate.old:symbol(s)n