草庐IT

declare-styleable

全部标签

c++ - 具有从属限定标识的类成员 using-declaration 是否应该是从属名称?

C++11标准草案N3337在[namespace.udecl]中声明Ausing-declarationintroducesanameintothedeclarativeregioninwhichtheusing-declarationappears.Everyusing-declarationisadeclarationandamember-declarationandsocanbeusedinaclassdefinition.Inausing-declarationusedasamember-declaration,thenested-name-specifiershallnam

c++ - "error: ' avcodec_open ' was not declared in this scope"尝试编译 untrunc

我有一个断电的摄像机录制的视频。因此,它制作的带有H.264编解码器的MP4文件已损坏。我想在Ubuntu14.04.1中修复这个文件。我见过的一种方法suggested就是用untrunc.我正在尝试编译它,但遇到了一个我不知道如何解决的错误。到目前为止我所做的如下:sudoapt-getinstalllibavformat-devlibavcodec-devlibavutil-devgitclonehttps://github.com/ponchio/untrunc.gitcduntrunc/g++-ountruncfile.cppmain.cpptrack.cppatom.cpp

c++ - 在 xcode 中包含 cmath 时出现错误 : '::acos' has not been declared, 等

在尝试构建包含的小型简单项目时出现以下错误在Xcode中:cmath:'*'hasnotbeendeclared'::acos'hasnotbeendeclaredInfileincludedfrom/Xcode4/Projects/libraryLAFMath/Classes/libraryLAFMath.cpInfileincludedfrom/Xcode4/Projects/libraryLAFMath/Classes/libraryLAFMath.h'::acos'hasnotbeendeclaredin/Xcode4/Platforms/iPhoneSimulator.pla

c++ - Qt错误: `qApp' was not declared in this scope

据我所知,qApp是全局指针,因此它应该可以在任何地方访问,但我收到此错误error:qAppwasnotdeclaredinthisscope。1#include"textEdit.h"23TextEdit::TextEdit(){4}56voidTextEdit::insertFromMimeData(constQMimeData*source){7if(qApp->mouseButtons()==Qt::MidButton){8return;9}10QTextEdit::insertFromMimeData(source);11}1213 最佳答案

C++ - 派生类中的 "Member function not declared"

我在MSVC++2008中遇到问题,其中VS2008抛出此编译错误:errorC2509:'render':memberfunctionnotdeclaredin'PlayerSpriteKasua'现在,令我困惑的是render()已定义,但在继承的类中。类定义是这样的:SpriteBase-InheritedBy->PlayerSpriteBase-InheritedBy->PlayerSpriteKasua因此,SpriteBase.h的简化版本如下:classSpriteBase{public://Variables===============================

c++ - auto 的编译器问题?错误 : in a declarator-list 'auto' must always deduce to the same type

std::vectorvec;autoi=vec.begin(),j=std::next(i);Error:inadeclarator-list'auto'mustalwaysdeducetothesametype 最佳答案 在Linux上的g++中编译良好,因此它似乎是一个编译器错误。Probablythisone. 关于c++-auto的编译器问题?错误:inadeclarator-list'auto'mustalwaysdeducetothesametype,我们在StackOve

【C语言进阶】很诡异的编译报错expected declaration or statement at end of input

作者简介*架构师李肯(全网同名)**,一个专注于嵌入式IoT领域的架构师。有着近10年的嵌入式一线开发经验,深耕IoT领域多年,熟知IoT领域的业务发展,深度掌握IoT领域的相关技术栈,包括但不限于主流RTOS内核的实现及其移植、硬件驱动移植开发、网络通讯协议开发、编译构建原理及其实现、底层汇编及编译原理、编译优化及代码重构、主流IoT云平台的对接、嵌入式IoT系统的架构设计等等。拥有多项IoT领域的发明专利,热衷于技术分享,有多年撰写技术博客的经验积累,连续多月获得RT-Thread官方技术社区原创技术博文优秀奖,荣获CSDN博客专家、CSDN物联网领域优质创作者、2021年度CSDN&RT

c++ - 类方法声明中的 decltype : error when used before "referenced" member is declared

考虑followingcode:structtest{autofunc()->decltype(data){}//ERRORintdata;};intmain(){testt;t.func();}它给出了以下错误:main.cpp:2:29:error:'data'wasnotdeclaredinthisscopeautofunc()->decltype(data){}但是,如果我将data放在func()之上,它不会给出任何错误(livecode):structtest{intdata;autofunc()->decltype(data){}};...所以我的问题是,为什么declt

c++ - -O1/2/3 与 -std=c++1y/11/98 - 如果包含 <cmath> 我收到错误 : '_hypot' was not declared in this scope

我刚刚使用mingw-get-setup更新了MinGW而且我无法构建包含的任何内容header如果我使用大于-O0的东西与-std=c++1y.(我也试过c++11和c++98)我收到这样的错误:g++.exe-pedantic-errors-pedantic-Wextra-Wall-std=c++1y-O3-cZ:\Projects\C++\L6\src\events.cpp-oobj\src\events.oInfileincludedfromz:\lander\mingw\lib\gcc\mingw32\4.8.1\include\c++\cmath:44:0,fromZ:\P

c++ - "indirectly declaring a namespace within another namespace"是什么意思?

[basic.link]C++14标准中的第4段:Anunnamednamespaceoranamespacedeclareddirectlyorindirectlywithinanunnamednamespacehasinternallinkage.Allothernamespaceshaveexternallinkage.Anamehavingnamespacescopethathasnotbeengiveninternallinkageabovehasthesamelinkageastheenclosingnamespaceifitisthenameof...上面的“在另一个命名