草庐IT

NT_SYMBOL_PATH

全部标签

c++ - Clrdump (C++) 错误 LNK2019 : unresolved external symbol __imp__RegisterFilter@8 referenced in function _main

我正在使用带有pvcs编译器的makefile系统(使用MicrosoftVisualC++,2008编译器),我收到了几个以下形式的链接错误:errorLNK2019:unresolvedexternalsymbol__imp__RegisterFilter@8referencedinfunction_main尽管使用了extern"C"声明,但还是会发生这种情况,即:extern"C"intCLRDUMP_APIRegisterFilter(LPCWSTRpDumpFileName,unsignedlongDumpType);此外,在makeexe.mak中,库链接如下:$(编译库

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++ - 如何通过 C++ 可执行文件中的 list 启用 "Long Path Aware"行为?

我正在尝试关注Microsoftdocumentation解除Windows10下API中的MAX_PATH文件路径限制。它说:Youcanalsoenablethenewlongpathbehaviorperappviathemanifest:true所以,第一个问题。是否可以在VisualStudio2017的项目属性中启用它?第二个问题:我没有找到上面的答案,所以我决定走手动路线:我创建了additional.manifest文本文件:true然后我将它添加到项目属性中:但是当我编译它时,它给了我这个警告,并且该list在应用程序运行时似乎没有任何效果:1>additional.

c++ - 使用 boost::successive_shortest_path_nonnegative_weights 的最小成本最大流

我需要使用计算流量网络的最小成本最大流量boost::successive_shortest_path_nonnegative_weights()BGL(v1_60_0)中可用的函数。如documentation中所述,thedirectedgraphG=(V,E)thatrepresentsthenetworkmustbeaugmentedtoincludethereverseedgeforeveryedgeinE.Thatis,theinputgraphshouldbeGin=(V,{EUET}).[...]TheCapacityEdgeMapargumentcapmustmape

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 - 需要哪个 $path 以便 g++/pybind11 可以找到 Python.h?

我开始使用pybind11(在Ubuntu16.04和Python2.7上)。为了试水,我围绕我的C++库创建了一个无操作的包装器。唉,编译找不到Python.h:$g++-std=c++0x-fPIC-pedantic-g-Wno-missing-field-initializers-Wno-switch-Wno-multichar-ftree-vectorize-ftree-vectorize-mssse3backend.huvc-v4l2.cppwrap.cpp-owrap.sobackend.h:4:9:warning:#pragmaonceinmainfile#pragmao

c++ - 来自 Xcode 8.3.2 : Non-portable path to file - specified path differs in case from file name on disk 的错误警告

出于某种原因,我的代码库突然开始收到数以千计的此类警告。但到目前为止,所有有问题的文件和路径都是完全正确的,与我在磁盘上看到的与Finder相匹配。他们是不是在暗地里另有幕后?当问题实际上并不存在时,为什么Xcode会生成这些警告?尽管http://stackoverflow.com/questions/43067017/non-portable-path-to-file-file-h-specified-path-differs-in-case-from-file-na是关于相同的警告,在这种情况下我已经验证导入路径与磁盘上的文件名匹配。 最佳答案

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该代码只是一个

java - JNI : Library is Found on Path, 但方法不是 (java.lang.UnsatisfiedLinkError)

我正在尝试使用JNI并获取java.lang.UnsatisfiedLinkError。与其他数百万个问题不同,我在我的路径上有这个库,甚至在我删除它时看到了异常变化。我确定我创建的dll有问题,但我不确定是什么。这是我的java类代码:packagecom;publicclassTune{static{System.loadLibrary("lala");}publicstaticvoidmain(String[]args){Tunej=newTune();System.out.println("2+6="+j.add(2,6));}nativepublicintadd(intx,i