大约有 44,000 项符合查询结果(耗时:0.0293秒) [XML]

https://www.tsingfun.com/it/cp... 

gdb打印c++ std::vector元素内容 - C/C++ - 泛网 - 专注C/C++及内核技术

gdb打印c++ std::vector元素内容gdb_vector_print使用GDB调试程序或coredump时,直接 p vec 打印的是vector内部成员的信息,不能直观输出元素的内容。通过打印内部元素地址内容的方式,查看vector元素内容,不限gcc版本:(gdb) 使用GDB调试程...
https://www.tsingfun.com/it/cp... 

浅析Linux段错误:SEGV_MAPERR、SEGV_ACCERR - C/C++ - 泛网 - 专注C/C++及内核技术

浅析Linux段错误:SEGV_MAPERR、SEGV_ACCERRwhat-is-segv-maperr有两种常见的段错误,SIGSEGV 是段错误终止信号,通常是由无效内存访问导致的错误:访问了具有错误权限的页面。例如,它是只读的,但您的代码试图写入它。这将报告为SEGV_A...
https://www.tsingfun.com/it/cp... 

gcc编译警告:misleading-indentation - C/C++ - 泛网 - 专注C/C++及内核技术

gcc编译警告:misleading-indentationgcc-misleading-indentationmisleading-indentation(不正确的缩进),一般都是Tab及空格的缩进问题导致。实例1:Tab、空格混用将:[空格] if(err)[空格] fprintf(stderr, "op faile misleading-indentation(不正确的缩...
https://www.tsingfun.com/it/cp... 

[解决]Missing Constraint: Bundle-RequiredExecutionEnvironment: J2SE-1....

[解决]Missing Constraint: Bundle-RequiredExecutionEnvironment: J2SE-1.5eclipse-Missing-Constraint原因:eclipse版本太老了,java版本太新了不匹配导致。解决:安装最新的eclipse,地址:https: www eclipse org downloads 参考:https: www eclipse org forums index php t 1...
https://www.tsingfun.com/it/cp... 

Undefined reference to symbol X509_free - C/C++ - 泛网 - 专注C/C++及内核技术

Undefined reference to symbol X509_freeundefined-reference-to-symbol-x509-freeUndefined reference to symbol X509_free 编译错误的解决方法:链接库中增加 -lcrypto,而非 -lcrypt参考:https: stackoverflow com questions 33215936 undefined-reference-to-symbol-x509-freeUndefined refer...
https://www.tsingfun.com/it/cp... 

【解决】eclipse新建项目报错:overlaps the location of another project:...

【解决】eclipse新建项目报错:overlaps the location of another project: 'xxx'eclipse-error-overlaps-the-location-of-another-projectEclipse新建项目时报错:overlaps the location of another project: & 39;xxx& 39;,确保workspace下没有重复的工程,但之前曾经添加并删...
https://www.tsingfun.com/it/cp... 

编译错误 error: ‘typeof’ cannot be used as a function - C/C++ - 泛网 - 专注C/C++及内核技术

编译错误 error: ‘typeof’ cannot be used as a functionerror-typeof-cannot-be-used-as-a-function编译一些开源的C项目,发现typeof关键字不能被识别,报错:error: ‘typeof’ cannot be used as a function。解决方法:修改C编译选项 -std=gnu99,使用GNU99 ...
https://www.tsingfun.com/it/cp... 

eclipse cdt 运行程序时添加依赖库路径 - C/C++ - 泛网 - 专注C/C++及内核技术

eclipse cdt 运行程序时添加依赖库路径eclipse-cdt-ld-library-path我们知道Linux即使依赖库和可执行文件在同一目录下,如果不使用 LD_LIBRARY_PATH 指定库路径(即当前目录)的话,仍然会报加载不到依赖库的错误。那么Eclipse CDT也是类似,...
https://www.tsingfun.com/it/cp... 

C++ protobuf使用入门实例 - C/C++ - 泛网 - 专注C/C++及内核技术

C++ protobuf使用入门实例cpp_protobuf_demoprotobuf 是结构化数据的系列化 反序列化解决方案,类似XML JSON,但他的运行效率及压缩率均较后者高一个数量级,且完全的跨平台。使用步骤如下:1、定义一个 proto数据结构文件 protobuf 是结...
https://www.tsingfun.com/it/cp... 

‘std::tr1’ does not name a template type - C/C++ - 泛网 - 专注C/C++及内核技术

‘std::tr1’ does not name a template typestd-tr1-does-not-name-a-template-type解决方法:添加头文件 if !defined(_MSC_VER) include <tr1 memory> endifC++ Technical Report 1 (TR1)是ISO IEC TR 19768, C++ Library Extensions(函式库扩充)的 解决方法:添加头文件 #if !def...