草庐IT

missing-symbols

全部标签

c++ - Boost Spirit Qi Symbols默认值和NULL值

BoostSpiritqi::symbols实现了一个键值对映射:给一个字符串的键,它可以返回某个值。我的问题是:1)对于一个空字符串,是否可以返回一个默认值?(代码中的Q1)2)对于非空字符串或键值对映射中列出的键,是否可以返回一个值表示该键无效?(代码中的Q2)**以下代码基于BOOSTSPIRIT文档。**在此先感谢您的任何建议。#include#include#include#include#include#include#include#include#includetemplatevoidtest_parser_attr(charconst*input,Pconst&p,T

c++ - 将 HDF5 库链接到 Visual C++ DLL 项目 : unresolved external symbol __imp__*

我正在使用MSVisualC++2010Express构建一个插件,我想包含来自HDF5library的功能.我尝试过使用CMake从源代码构建HDF5,并安装预编译库(HDF5-1.8.7_CMake_x86_shared.zip对于VC2008)。对于任一构建目录/方法,我都修改了我的项目属性:C/C++>General>AdditionalIncludeDirectories:为HDF5添加includeLinker>General>AdditionalLibraryDirectories:为HDF5添加lib这是我的DLL模块的片段:#include"cpp/H5Cpp.h"s

c++ - SFML 2.1 架构 x86_64 错误的 undefined symbol

我最近安装了SFML2.1并尝试从终端编译和运行,而不是Xcode,他们网站上的示例程序http://www.sfml-dev.org/tutorials/2.0/start-linux.php.PathtowhereIinstalledSFML:/Users/.../Desktop/C++_Code/SMFL/SFML-2.1-osx-gcc-universal但是,我不断收到以下错误:Undefinedsymbolsforarchitecturex86_64:"sf::String::String(charconst*,std::__1::localeconst&)",refere

c++ - C++11 中的 exec 缺少 "missing sentinel"警告

如果您忘记在对exec(3)之一的调用结束时包含NULL标记,GCC会发出有用的警告。功能:#includeintmain(intargc,char**argv){execlp("test","test","arg1");}GCC4.8的示例编译器输出:$g++test.cc-Wformattest.cc:Infunction‘intmain(int,char**)’:test.cc:4:32:warning:missingsentinelinfunctioncall[-Wformat=]execlp("test","test","arg1");^$但是,如果您在C++11模式下编译,

c++ - 从 stdexcept 类继承时为 "Undefined Symbols"

这是在中定义的异常:classlength_error:publiclogic_error{public:explicitlength_error(conststring&__arg);};这是我的异常(exception)情况:#include#includeusingnamespacestd;classrpn_expression_error:publiclogic_error{public:explicitrpn_expression_error(conststring&__arg);};为什么在时会出现此错误?不是吗?Undefinedsymbols:rpn_expressio

c++ - swig : undefined symbol: _ZN7hosters11hostersLink7getLinkEi 错误

我正在尝试为这个库创建一个python绑定(bind):http://code.google.com/p/hosterslib/.我正在使用swig,这是代码:%modulepyhosters%{#include"hosters/hosters.hpp"%}%include"hosters/hosters.hpp"我跑swig-c++-python-oswig_wrap.cxxswig.i我用编译g++-O2-fPIC-shared-o_pyhosters.soswig_wrap.cxxpython-config--libs--cflags-lhosters-lcln-lhtmlcxx

c++ - 视觉 C++ 2010 : what major c++0x (and STL) features are still missing?

有原子操作吗?线?绑定(bind)?还缺少什么?编辑:我对c++0x及其STL很感兴趣 最佳答案 查看here和here 关于c++-视觉C++2010:whatmajorc++0x(andSTL)featuresarestillmissing?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/4748772/

c++ - 错误 C2143 : syntax error : missing ';' before '__stdcall"

我在创建COMDLL时遇到了一些问题。我的IClassFactory实现如下所示:include#include#include"AddObj.h"#include"AddObjFactory.h"HRESULT__stdcallCAddFactory::CreateInstance(IUnknown*pUnknownOuter,constIID&iid,void**ppv){if(pUnknownOuter){returnCLASS_E_NOAGGREGATION;}CAddObj*pObject=newCAddObj();if(pObject==NULL){returnE_OUTO

c++ - 警告 : 'visibility' attribute ignored - symbol visibility - C++/gcc

相关主题:Whydoesconstimplyinternallinkageinc++,whenitdoesn'tinC?我正在关注GCCvisibilitywiki为我的共享库添加可见性。当我编译我的源文件时它会生成一个警告warning:'visibility'attributeignored[-Wattributes]这是我的代码://my_shared_lib.h#if__GNUC__>=4#defineDLL_API__attribute__((visibility("default")))#defineDLL_LOCAL__attribute__((visibility("h

c++ - 架构 x86_64 的 undefined symbol : OS X, Boost Log,CMake

链接的另一个问题OSX10.9.5x64跨平台项目正在使用CMake工具链构建。使用boost。将所有可执行文件与BoostLog链接时出错(肯定找到了BOOST_PATH,单元测试与Boost测试链接成功)首先尝试。使用Clanggcc-vAppleLLVMversion6.0(clang-600.0.56)(basedonLLVM3.5svn)Target:x86_64-apple-darwin13.4.0Threadmodel:posix建筑boost./bootstrap&&./b2threading=multilink=staticruntime-link=staticins