草庐IT

symbolic-computation

全部标签

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++ - Matlab/C++ : segmentation fault on parallel computing with C++ Mex persistent objects (cannot convert handle)

本帖引用:[1]http://www.mathworks.com/matlabcentral/newsreader/view_thread/278243“使C++对象在mex调用之间持久化,并且健壮。”[2]MATLABparforandC++classmexwrappers(copyconstructorrequired?)“MATLABparfor和C++类mex包装器(需要复制构造函数?)”我成功地实现了一个Matlab/C++接口(interface),基于[1]上提出的方法。无论如何,我在尝试将系统与Matlab并行计算一起使用时遇到了麻烦。在MEX接口(interface)

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++ - 从 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++ - 警告 : '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

java - 使用 undefined symbol 加载 JNI 时崩溃

我正在尝试将我的native库链接到Java应用程序,但是当我尝试运行它时,我得到一个java.lang.UnsatisfiedLinkError异常,提示缺少符号(_ZTVN10__cxxabiv117__class_type_infoE)我像使用任何其他共享库一样使用g++编译共享库。这是我第一次尝试使用JNI,我不知道如何正确链接所有内容。 最佳答案 您可以使用工具链附带的c++filt可执行文件来分解丢失的符号。然后就是弄清楚代码的哪一部分没有做它应该做的事情。nm可用于列出代码中定义的符号。如果您看到某个符号在同一行上有一

c++ - 如何评估 SymbolicC++ 中的符号变量?

我一直在尝试一些C++计算机代数库,以便与我正在学习的vector微积分类(class)一起使用。我在GiNaC和SymbolicC++中遇到非线性方程的问题它确实有效。这是一个简单的例子,但问题是我无法弄清楚如何计算一个数字并可能将其转换为double或float:#include#include"symbolicc++.h"usingnamespacestd;intmain(void){Symbolicx("x"),y("y");Equatione1=(x^2)+(y^2)==13;Equatione2=(x^2)-y==7;Equationseqs={e1,e2};listsym

c++ - 尝试构建共享库 g++/mac 时 undefined symbol _main

我正在尝试在Mac上构建libdecodeqr。我的C++构建和链接历史都在Windows上,所以这是一个令人兴奋的发现之旅。我终于到了要创建链接库的地步。我正在运行的命令是:g++-shared-olibdecodeqr.so.0.9.3bitstream.ocodedata.ocontainer.oecidecoder.oformatinfo.ogalois.oimagereader.olibdecodeqr.o-L/opt/local/lib-archi386-lcxcore-lcv结果是:Undefinedsymbols:"_main",referencedfrom:start