草庐IT

declaration-specifiers

全部标签

c++ - 错误 : ‘NULL’ was not declared in this scope

在gcc4.3上编译C++时收到此消息error:‘NULL’wasnotdeclaredinthisscope它出现又消失,我不知道为什么。为什么?谢谢。 最佳答案 NULL不是关键字。它是一些标准头文件中定义的标识符。你可以包括#include将其纳入范围,包括其他一些基础知识,例如std::size_t。 关于c++-错误:‘NULL’wasnotdeclaredinthisscope,我们在StackOverflow上找到一个类似的问题: https:

iOS 编译错误 : no visible @interface for 'CDVCommandDelegateImpl' declares the selector 'execute:'

升级到最新的Cordova版本(3.6.3)后,我在运行cordovabuildios命令时收到此错误。错误:/Volumes/local.uhmuhm.net/projectxxx/htdocs/phonegap/src/Projectxxx/platforms/ios/Projectxxx/Classes/MainViewController.m:154:19:error:novisible@interfacefor'CDVCommandDelegateImpl'declarestheselector'execute:'return[superexecute:command];其他

ios - Xcode 9 中的 "This function declaration is not a prototype"警告

使用Xcode9时,有一些编译器警告说Thisfunctiondeclarationisnotanprototype。它建议将void添加到方法体中,这将解决它。我遇到的问题是,这些警告也会针对系统API引发,例如UIApplication委托(delegate)方法:-(void)application:(UIApplication*)applicationhandleActionWithIdentifier:(NSString*)identifierforRemoteNotification:(NSDictionary*)userInfowithResponseInfo:(NSDi

linux - 在 Linux 上构建 VTK 时出现错误 "GLintptr has not been declared"

在Linux上构建VTK时,出现以下错误:Infileincludedfrom/usr/include/GL/glx.h:333:0,from/home/mildred/Work/3DKF/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:31:/usr/include/GL/glxext.h:480:143:error:‘GLintptr’hasnotbeendeclared 最佳答案 解决方案是在构建期间定义GLX_GLXEXT_LEGACY。这已完成,但在文件Rendering/vtkXOpen

android - 使用-sdk :minSdkVersion 15 cannot be smaller than version 16 declared in library

我不明白这个错误信息C:\ProgramFiles(x86)\Jenkins\workspace\__temp-mobile-prev\platforms\android\AndroidManifest.xml:67:5Error:uses-sdk:minSdkVersion15cannotbesmallerthanversion16declaredinlibraryC:\ProgramFiles(x86)\Jenkins\workspace\__temp-mobile-prev\platforms\android\build\intermediates\exploded-aar\co

macos - OS X : MACOSX_RPATH is not specified for the following targets 下的 CMake 警告

我尝试在OSX(Yosemite)下构建一个基于CMake的软件,它可以在Fedora21下成功构建。它使用了一堆库。两者都有,像Boost这样的大型开放式程序和一些位于/installation_folder/lib中的自行编写的程序。我使用CMake版本3.3.0。执行后mkdirbuildcdbuildcmake..-DCMAKE_C_COMPILER=/usr/local/Cellar/gcc/5.2.0/bin/gcc-5-DCMAKE_CXX_COMPILER=/usr/local/Cellar/gcc/5.2.0/bin/g++-5-DCMAKE_MODULE_PATH=

ruby : if i declare a variable in a method does another method in the same class know it exists?

如果我有一个名为roll的方法(如在骰子中)并且它有一个名为number的变量。同一个类中的另一个名为stats的方法可以使用其中的那个变量吗?? 最佳答案 你是说这样?classDiedefroll@number=5enddefstatsputs@numberendendd=Die.newd.rolld.stats#prints5 关于ruby:ifideclareavariableinamethoddoesanothermethodinthesameclassknowitexists

ruby - gem 安装错误 : 'Please specify at least one gem name'

例如,当我运行“geminstallbundler”时,如果我运行的是ruby​​1.9.3版本,它工作正常,但是当运行ruby​​2.1.2时,它似乎没有看到“bundler”arg并给我ERROR:Whileexecutinggem...(Gem::CommandLineError)Pleasespecifyatleastonegemname(e.g.gembuildGEMNAME)我在两个运行rbenv的不同系统上看到了这一点。这是RBENV_DEBUG=1运行时输出的最后一部分:+[rbenv-exec:45]exportPATH=/home/ded/.rbenv/versio

ruby - Textmate + Ruby : ruby: warning: -K is specified; it is for 1. 8 兼容性,可能导致奇怪的行为

我正在使用textmate,当我尝试使用快捷方式复制一行时(ctrl+shift+d)它给我一个错误ruby:warning:-Kisspecified;它是为了1.8兼容性,可能会导致奇怪的行为。这很奇怪,因为它几天前才开始这样做。正如另一个stackoverflow答案所建议的那样,我将我的textmate指向1.8,这工作了几个月,但突然之间它不再工作了。我该如何解决这个问题? 最佳答案 TextMate1.xunderMavericks:IfyouwishtouseTextMate1.xonMavericksyouwilln

c++ - 谁能帮我理解这个错误? "definition of implicitly-declared ‘classA::classA()’ "

代码如下:#include#includeusingnamespacestd;classclassA{protected:voidsetX(inta);private:intp;};classA::classA(){//errorhere.p=0;}voidclassA::setX(inta){p=a;}intmain(){system("PAUSE");returnEXIT_SUCCESS;} 最佳答案 您忘记在类定义中声明构造函数。在类的public部分声明它(如果您希望客户端使用它创建实例):classclassA{publi