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

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

VS编译dll时报编译错误:fatal error LNK1561: entry point must be define...

VS编译dll时报编译错误:fatal error LNK1561: entry point must be definedentry-point-must-be-definedVS编译dll时报编译错误:fatal error LNK1561: entry point must be defined1、可能是连接命令中的 subsystem不正确,在Project Properties->Linker->System中设置,改为 V...
https://www.tsingfun.com/it/cp... 

Eclipse CDT利用gdbserver远程调试 - C/C++ - 泛网 - 专注C/C++及内核技术

Eclipse CDT利用gdbserver远程调试eclipse-cdt-gdbserver场景:调试机器A,目标机器B1、目标机器上启动gdbserver:ps -elf | grep (process)gdbserver --attach :10000 (pid)2、调试机器上启动Eclipse Attach模式:场景:调试机器A,目标机器B 1、目标机器上启...
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/cpp/std_call_once.html 

c++11 std::call_once只调用一次函数,类似单例模式 - C/C++ - 泛网 - 专...

c++11 std::call_once只调用一次函数,类似单例模式std_call_oncestd::call_once 保证函数或者一些代码段在并发或者多线程的情况下,始终只会被执行一次,Demo如下: include <iostream> include <thread>static std::once_flag g_once_flag std::call_once 保证...
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... 

cout保留两位小数输出 - C/C++ - 泛网 - 专注C/C++及内核技术

cout保留两位小数输出cout_two_decimalC++ std::cout输出2位小数的代码: include <stdio h> include <iostream> include <iomanip> std::setprecision函数需要引入该头文件int main(){ double dval C++ std::cout输出2位小数的代码: #include <stdio.h> #include <iostr...
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下没有重复的工程,但之前曾经添加并删...