草庐IT

NT_SYMBOL_PATH

全部标签

c++ - 升级到 OS X Mavericks 后架构 x86_64 的 OpenCV undefined symbol

我有一个运行良好的opencv项目。今天我已经将我的OSXlion升级到Maverick,我收到以下imwrite函数的错误:Undefinedsymbolsforarchitecturex86_64:"cv::imwrite(std::__1::basic_string,std::__1::allocator>const&,cv::_InputArrayconst&,std::__1::vector>const&)",referencedfrom:_maininHello.old:symbol(s)notfoundforarchitecturex86_64我不得不说其他opencv函

c++ - 米斯拉-C++ :2008[8-4-3] : return in all exit path in function

在测试我的代码(静态分析)以查看我是否尊重misrac++2008时,我收到以下错误Functiondoesnotreturnavalueonallpaths.函数看起来像int*Dosomething(stringv){int*retvalue=NULL;if(0==exists(v)){throw("error:valuedoesn'texist");}else{retvalue=dosomecomputations(v);}returnretvalue;}我真的需要抛出一个异常,因为调用者应该根据错误做一些事情。可能的错误列表可能很大,而且不仅仅是该代码示例中的值不存在。我该如何

c++ - cmake find_library 和 CMAKE_FIND_ROOT_PATH

在cmake的find_library函数的文档中,我们有TheCMakevariableCMAKE_FIND_ROOT_PATHspecifiesoneormoredirectoriestobeprependedtoallothersearchdirectories.Thiseffectively“re-roots”theentiresearchundergivenlocations.PathswhicharedescendantsoftheCMAKE_STAGING_PREFIXareexcludedfromthisre-rooting,becausethatvariableisa

c++ - 在 Visual Studio 中构建解决方案时出现 "Unable to create directory"错误 "Access to path is denied."

我正在尝试在VS2013中构建一个VS2010C++项目(准确地说,是来自SteinbergVstSDK的示例项目)并出现以下错误:C:\ProgramFiles(x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(1235,5):errorMSB3191:Unabletocreatedirectory"C:\ProgramFiles(x86)\CommonFiles\VST3\Steinberg".Accesstothepath'C:\ProgramFiles(x86)\CommonFiles\VST3\St

c++ - 带有 OO 的模板导致 Unresolved external symbol 问题

我没有.cpp文件,因为我正在使用模板。但是还是遇到了unresolvedexternalsymbol的问题。有人知道原因吗?如果你能帮助我,非常感谢。templateclassSQLiteHelper{public:staticSQLiteHelper*getInstance(T*factory){if(NULL==m_sInstance){m_sInstance=newSQLiteHelper(factory);}returnm_sInstance;}private:SQLiteHelper(T*factory){m_factory=factory;}private:staticS

c++ - Boost 的属性树 : deleting a child knowing its path

是否可以轻松地从通过其路径已知的属性树中删除子项(及其最终的子项)?以下内容autochild=ptree.get_child(path);child.clear();实际上并没有删除子项,只是删除了它的内容。erase成员函数接受一个迭代器或一个键。我不知道有什么简单的方法可以找到与路径对应的迭代器,而无需遍历树。可以通过在点字符处拆分路径并删除剩余部分来找到“根”子级。然而,有没有更容易/更短的方式到达那里? 最佳答案 你可以这样做:ptree.get_child("path.to").erase("child");请注意,这会

c++ - Poco::Path 使用 const wchar_t* 编译但行为异常

使用Poco::Path我发现了一个非常奇怪的错误。见以下代码:#include#include#includeintmain(){std::wstringa_path=L"c:\\temp";//Poco::Pathfrom_wstring(a_path);//ERROR:failstocompile,expectedPoco::Pathfrom_wchar_t(a_path.c_str());//compiles...unexpectedstd::cout但上面程序的输出是(在Windows中):\而不是预期的:c:\temp查看Poco::Path文档,我看不到构造函数期望std

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++ - c_include_path 与 ld_library_path

在Ubuntu12.04或Springdale6.4上,使用gcc和g++,C_INCLUDE_PATH(或CPLUS_INCLUDE_PATH)和LD_LIBRARY_PATH之间有什么区别?LD一个只在运行时使用,另外两个只在编译时使用吗?由于GCC在这些操作系统上似乎忽略了INCLUDE和LIBRARY_PATH环境变量,因此我应该在构建~/.bashrc文件时设置它尽可能跨现代Linux操作系统可移植(实际路径中的模数变化)? 最佳答案 LD_LIBRARY_PATH是一个环境变量,当您启动可执行文件时,它告诉dll加载程序

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