草庐IT

EXPORT_SYMBOL_GPL

全部标签

c++ - 带有 fat 库的 OS X 上体系结构 x86_64 的 undefined symbol

我自己从源代码构建了libcrypto.a和libssl.a,指定了darwin64-x86_64-cc(对于64位)和darwin-i386-cc(对于32位)到OpenSSL的配置脚本。使用lipo创建胖库并将它们作为依赖项添加到我的Xcode项目中。但是,我遇到了一个undefinedsymbol错误:undefinedsymbolsforarchitecturex86_64:"_OPENSSL_ia32cap_P",referencedfrom:_AES_cbc_encryptinlibcrypto.a(aes-x86_64.o)ld:symbol(s)notfoundfora

c++ - 尽管使用 -fPIC 进行编译,但链接器错误 "relocation R_X86_64_PC32 against undefined symbol"

我正在使用命令行编译一个c++程序g++-cprog.cc-std=c++11-march=native-fPIC-fopenmp然后尝试通过创建一个共享对象g++prog.o-shared-fopenmp-olib/libprog.so这一直有效。但是今天我得到:/usr/bin/ld:prog.o:relocationR_X86_64_PC32againstundefinedsymbol`_ZTVN12_GLOBAL__N_111handle_baseE'cannotbeusedwhenmakingasharedobject;recompilewith-fPIC/usr/bin/l

c++ - 错误 LNK2019 : unresolved external symbol ___iob_func referenced in function "void __cdecl Padding(int)"

使用FTDIAPI可以在VisualStudio2012下正常编译和链接。但在VS2014下,它给出:ErrorLNK2019:unresolvedexternalsymbol___iob_funcreferencedinfunction"void__cdeclPadding(int)"标准库有变化吗? 最佳答案 是的,标准库已经改变,FTDI似乎并不关心-至少从CDM2.12.18驱动程序版本开始不关心。问题在thisquestion的答案中描述。.ftd2xx.lib中devcon.obj的void__cdeclPadding(

c++ 免费(非 gpl)网络服务框架

我正在寻找不是GPLc++网络服务框架工作的好免费软件我用过AXIS2但它对我们的需求没有好处,有什么好的框架可以可以像gSoap一样优秀和健壮 最佳答案 我用过wsdlpullhttp://wsdlpull.sourceforge.net/它奏效了。它非常简单,不会为您生成stub,我不确定它如何处理复杂的数据类型,但如果您需要一些简单的东西,它就可以完成工作。它是LGPL,因此您可以将闭源代码链接到它。 关于c++免费(非gpl)网络服务框架,我们在StackOverflow上找到一

c++ - 体系结构 x86_64 链接 constexpr std::array 的 undefined symbol

我在链接目标文件时遇到错误:#include#includeenumSystemType:uint8_t{AC,DC,HCP,EFF};templatestructSystem;templatestructSystem{public:staticconstexprsize_tnumber_of_sockets=2;staticconstexprstd::arrayobject_per_socket{{12,6}};};我如下使用它来将数据分配到vector中。terminal->no_obj_per_system.assign(Sytem::object_per_socket.begi

objective-c - iPhone : How to get the currency symbol from an amount string?

我有一个不同货币的金额列表(例如10.99美元、20.55欧元)。我想找出每个字符串的货币符号,以便解析金额。你有什么想法吗?问候。 最佳答案 您可以使用正则表达式来查找第一个不是数字或小数分隔符的符号:NSError*error=NULL;NSRegularExpression*symbol=[NSRegularExpressionregularExpressionWithPattern:@"[^0-9.,]"options:NSRegularExpressionCaseInsensitiveerror:&error];NSRan

objective-c - 将 Zxing 包含到 Xcode 4.3 + Obj-C 时 undefined symbol

我在将ZXingWidget添加到我之前的iOS项目时遇到了一些问题。这是我之前使用XCode4.3+ARCforiOS开始的一个项目。对于这个项目,我需要包括ZXing来扫描。我遵循了提供的README。复制zxing到项目根目录,添加ZXingWidget.xcodeproj项目在构建阶段添加链接libZXingWidget.a将ZXingWidget添加到目标依赖项header搜索路径-递归$(SRCROOT)/zxing-read-only/iphone/ZXingWidget/Classesheader搜索路径-非递归$(SRCROOT)/zxing-read-only/cp

ios - iOS 中的 Admob 集成错误( undefined symbol )

我在我的项目中集成了admob。添加了所有框架、其他链接器标志和中介ID。我创建横幅View的代码是:if([[UIDevicecurrentDevice]userInterfaceIdiom]==UIUserInterfaceIdiomPhone){CGPointorigin=CGPointMake(self.window.frame.size.height/2-CGSizeFromGADAdSize(kGADAdSizeBanner).width/2,0.0);self.m_pBannerView=[[GADBannerViewalloc]initWithAdSize:kGADAd

ios - 架构 i386 : "_sqlite3_open", 的 undefined symbol 引用自:

我的应用程序中也有sqlite3.dylib,但它给了我上面的错误,我不知道如何修复此错误。请有人帮助我,我在等吗?架构i386的undefinedsymbol:“_sqlite3_open”,引用自:-MyDataBase.o中的[MyDataBaseopenOrCreateDatabase:]“_sqlite3_exec”,引用自:-[MyDataBasecreateTable:]inMyDataBase.o-MyDataBase.o中的[MyDataBaseInsertTable:]-MyDataBase.o中的[MyDataBaseUpdataTable:]-MyDataBas

ios - 错误 : symbol 'xxx' is multiply defined

我在我的代码中添加了多个Metal着色器,现在我得到:Error:symbol''ismultiplydefinedCommand/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin/metallibfailedwithexitcode1我不在任何地方包含.metal文件(XCode负责编译本身)并且我无法将inline或static添加到函数,那有什么问题呢? 最佳答案 在头文件中定义函数也有问题。我以为我可以内联它们,但似乎我