草庐IT

debug-symbols

全部标签

c++ - Visual Studio 2017 : ambiguous symbol size_t in linux projects

在VisualStudio2017中创建Linux项目并在源代码中插入usingnamespacestd;时,如下所示:#include#includeusingnamespacestd;intmain(){size_ti=1;strings=to_string(i);coutVS下划线size_t说是有歧义的符号。如果我按F12(转到定义),它会为我提供两个定义位置:来自stddef.h(C:\ProgramFiles(x86)\MicrosoftVisualStudio14.0\VC\Linux\include\usr\include\x86_64-linux-gnu\5\incl

c++ - Qi Symbols 性能慢?

我想提出一个让我陷入困境的主题,并提出了一个关于齐::符号。这一切都始于我查看新的野兽图书馆并阅读atutorialexample它以一个从http路径猜测mime类型的函数开始扩展。我开始仔细观察,看到了这个:autoconstext=[&path]{autoconstpos=path.rfind(".");if(pos==boost::beast::string_view::npos)returnboost::beast::string_view{};returnpath.substr(pos);}();我花了一段时间才弄清楚这是一个IIFE在C++风格中,用于初始化ext,同时声

关于 ..\OBJ\Temp.axf: Error: L6200E: Symbol Image multiply defined (by myfun.o and main.o).报错

在main.c文件写数组太臃肿,于是想写到别的头文件里面,这里显示报错…\OBJ\Temp.axf:Error:L6200E:SymbolImagemultiplydefined(bymyfun.oandmain.o).Notenoughinformationtolistimagesymbols.Notenoughinformationtolistloadaddressesintheimagemap.Finished:2information,0warningand1errormessages.“…\OBJ\Temp.axf”-1Error(s),0Warning(s).翻译为..\OBJ\T

c++ - LoadLibrary 失败 : First chance exception 0xC0000139 (DLL Not Found) - How to debug?

我有一个dll“mytest.dll”,当通过LoadLibrary()加载时,返回NULL(并且127作为GetLastError())。如果我在“mytest.dll”上使用DependencyWalker,它会报告它应该正确加载并且正确找到所有DLL。在主机exe上运行DependencyWalker的探查器选项会在日志中显示以下相关部分:00:00:55.099:Loaded"mytest.DLL"ataddress0x07860000bythread0xBBC.Successfullyhookedmodule.00:00:55.115:Firstchanceexception

c++ - 在模板类中声明的 friend 模板函数导致 undefined symbol 链接错误

几天来我一直在努力反对这个问题,查找它并在开源项目中寻找类似的代码:无法真正找到我做错了什么。基本上,给定以下代码(提炼出其本质):#includeusingstd::cout;usingstd::endl;usingstd::string;templateclassNode{Tvalue_;public:Node(constT&value):value_(value){}Tconstvalue()const{returnvalue_;}friendstd::ostream&operator&node);Nodeoperator+(constNode&other){returnNode

c++ - "error LNK2001: unresolved external symbol"

这个问题在这里已经有了答案:Whatisanundefinedreference/unresolvedexternalsymbolerrorandhowdoIfixit?(38个答案)关闭5年前。我的VC++2008程序有问题。当我编译它时,列出了以下错误。我花了很多有时间上groups.google.com找原因,但是没有评论帮助过我。有人知道问题出在哪里吗?谢谢。errorLNK2001:unresolvedexternalsymbol"longrfl_xref_id"(?rfl_xref_id@@3JA)errorLNK2001:unresolvedexternalsymbol"

c++ - 在 VC++ 中解决 hid.lib "unresolved external symbol"链接器错误

如标题所示,我遇到以下链接器错误:errorLNK2019:unresolvedexternalsymbol"unsignedchar__stdcallHidD_GetAttributes(void*,struct_HIDD_ATTRIBUTES*)"(?HidD_GetAttributes@@YGEPAXPAU_HIDD_ATTRIBUTES@@@Z)在我的代码中调用result=HidD_GetAttributes(WriteHandle,&attributes)时。这个函数应该存在于“hid.lib”中,我已将其添加到项目的链接器依赖项中。我还包含了头文件“hidsdi.h”,它

c++ - 为什么迭代器在 VS2010 中导致调试非常缓慢,即使 _HAS_ITERATOR_DEBUGGING、_SECURE_SCL、_SECURE_SCL_THROWS 设置为 0

我一直试图找出为什么在Debug模式下调试我们的程序需要这么长时间。在使用xperf查看堆栈的样子后,很明显我们在迭代器和STL容器上花费了大量时间。我在谷歌上搜索了一会儿,找到了选项_HAS_ITERATOR_DEBUGGING=0_SECURE_SCL=0_SECURE_SCL_THROWS=0我用#define在代码中设置所有这些#define_HAS_ITERATOR_DEBUGGING0#define_SECURE_SCL0#define_SECURE_SCL_THROWS0但这似乎没有用,所以我尝试使用visualstudio项目中的预处理器定义,但似乎仍然没有帮助。我已经

c++ - 错误 LNK2001 : unresolved external symbol C++

在我之前编译良好的VC++代码中,我添加了一个函数X(),如下所示:InthefileBaseCollection.hclassBase{//codevirtualHRESULTX();//code};INthefileDerivedCollection.hclassDerived:publicBase{HRESULTX();}InthefileDerivedCollection.cppHRESULTDerived::X{//definitionofDerivedhere.}已将头文件正确地包含在.cpp文件中。但我仍然不明白为什么会出现链接错误:errorLNK2001:unreso

c++ - Windows 8.1 上的 D3D11_CREATE_DEVICE_DEBUG

我正在尝试在Windows8.1上使用D3D11CreateDeviceAndSwapChain创建一个dx11设备。在我安装8.1之前,这在Windows8上是有效的。但是现在当我传递D3D11_CREATE_DEVICE_DEBUG标志时设备创建失败。枚举文档http://msdn.microsoft.com/en-us/library/windows/desktop/ff476107(v=vs.85).aspx声明您需要安装D3D11_1SDKLayers.dll,但它不应该作为Windows8SDK的一部分安装吗?我什至尝试重新安装Windows8SDK,但这没有帮助。有人有什