草庐IT

missing-symbols

全部标签

c++ - Netbeans "Resolve missing debugger command"C++

每当我尝试调试任何程序(即欢迎消息)时,我都会收到此提示。对如何为C++程序运行调试器有什么想法吗?我正在使用MacbookProOSXElCapitan(10.11.3) 最佳答案 对于MacOSX10.5及更高版本,安装Homebrew(如果您还没有)/usr/bin/ruby-e"$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"安装GDBbrewinstallgdb转到https://sourceware.org/gdb

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

这个问题在这里已经有了答案:Whatisanundefinedreference/unresolvedexternalsymbolerrorandhowdoIfixit?(38个答案)关闭9年前。假设我在一个名为one.cpp的文件中有一个名为DoThis(constchar*abc)的函数。因此,当我尝试从另一个源文件(two.cpp)中的另一个函数调用此函数时,我收到错误:errorLNK2001:unresolvedexternalsymbol(C++),即使我使用了#include"one.h"我要解决这个问题吗?

c++ - 编译器错误 C4430 : missing type specifier - int assumed

这个问题在这里已经有了答案:Resolvebuilderrorsduetocirculardependencyamongstclasses(12个答案)关闭8年前。我有这个错误:“错误C4430:缺少类型说明符-假定为int。注意:C++不支持default-int”使用此代码示例://A.h#include"B.h"classA{B*b;..};//B.h#include"A.h"classB{A*a;//errorerrorC4430:missingtypespecifier-intassumed.};

c++ - ld : duplicate symbol

我正在做一个学校项目,我从Xcode收到一些奇怪的错误。我正在使用TextMate的Command+R功能来编译项目。编译似乎工作正常,但链接失败并出现我不理解的错误消息。ld输出:ld:duplicatesymboltext_field(std::basic_istream>&)in/path/final/build/final.build/Release/final.build/Objects-normal/ppc/generics.oand/path/final/build/final.build/Release/final.build/Objects-normal/ppc/ma

c++ - 错误 LNK2019 : unresolved external symbol

我最近又开始用C++编程了,出于教育目的,我正在开发一款扑克牌游戏。奇怪的是,我不断收到以下错误:1>LearningLanguage01.obj:errorLNK2019:unresolvedexternalsymbol"public:__thiscallPokerGame::Poker::Poker(void)"(??0Poker@PokerGame@@QAE@XZ)referencedinfunction"void__cdecl`dynamicinitializerfor'pokerGame''(void)"(??__EpokerGame@@YAXXZ)1>LearningLan

c++ - SDL 错误 Undefined symbols for architecture x86_64 "_SDL_main"

我在我的macosx上将C++与SDLCocoa和Foundation框架结合使用。我收到以下错误Undefinedsymbolsforarchitecturex86_64:"_SDL_main",referencedfrom:-[SDLMainapplicationDidFinishLaunching:]inSDLMain.old:symbol(s)notfoundforarchitecturex86_64当我运行下面的代码时#import#import#include"SDLMain.h"intmain(intargc,constchar*argv[]){SDL_Init(SDL_

c++ - 将静态库转换为共享库(从 libsome.a 创建 libsome.so): where's my symbols?

这个问题的标题是exactdupe,但该问题的答案对我没有帮助。我有一堆目标文件打包在一个静态库中:%g++-std=c++98-fpic-g-O1-c-ofoo.ofoo.cpp%g++-std=c++98-fpic-g-O1-c-obar.obar.cpp%ar-rclibsome.afoo.obar.o我想从libsome.a而不是目标文件生成libsome.so,但是这个库真的是准系统:%g++-std=c++98-fpic-g-O1-shared-olibsome.solibsome.a%nm-DClibsome.so0000xxxxA_DYNAMIC0000xxxxA_GL

c - 链接 : error LNK2001: unresolved external symbol NtProcessStartup

我是Windows驱动程序开发和微过滤器的新手,我正在尝试构建nullFilter使用命令行工具的示例。所以我将#pragmacomment(lib,"FltMgr.lib")添加到.c文件并成功发出以下命令:cl.exe/nologo/Fo../../bin\filter.obj/cfilter.c/D_AMD64_rc.exe/nologo/Fo../../bin\filter.resfilter.rc但是,当我尝试创建sys文件时:link.exe/nologo/DRIVER:WDM/out:../../bin\filter.sys../../bin\filter.obj../.

Missing classes detected while running R8. Please add the missing classes or apply additional keep r

报错信息如下:MissingclassesdetectedwhilerunningR8.PleaseaddthemissingclassesorapplyadditionalkeeprulesthataregeneratedinE:\AndroidProject\XXX\XXX\app\build\outputs\mapping\debugAndroidTest\missing_rules.txt.Missingclasscom.google.errorprone.annotations.MustBeClosed(referencedfrom:androidx.test.platform.tr

SpringBoot之Post请求@RequestBody为空抛出Required request body is missing异常的解决方案

org.springframework.http.converter.HttpMessageNotReadableException:Requiredrequestbodyismissing出现异常的原因:body为空,但是@RequestBody注解默认请求体不能为空。解决办法一:查看是不是@GetMapping,SpringGet请求不能使用@RequestBody这个纯属粗心大意的问题~二:要求请求用Post却用了Get请求三:@RequestBody(required=false)如果是刚刚开发的项目,那么建议这样写。如果已经存在的项目,肯定不能这样写,后面会介绍另外一种相对简单的写法