上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 70 下一页
摘要: 1 link_directories和target_link_libraries 1.1 link_directories 告诉linker去这些目录去找library。 1.2 target_link_libraries 同link_directories一起使用,告诉要链接的库。 2 inclu 阅读全文
posted @ 2017-04-11 10:13 PhoenixTree(梧桐树) 阅读(8016) 评论(0) 推荐(0)
摘要: 1 什么是外部编译 就是让源码文件和cmake生成的工程文件分开,将cmake生成的工程文件放在一个单独的目录下面。 2 怎样进行外部编译 第一,单独建立一个目录,这个目录在source code目录的外面。 第二,在该目录下运行cmake "root CMakeLists.txt所在的目录",这样 阅读全文
posted @ 2017-04-07 09:01 PhoenixTree(梧桐树) 阅读(1525) 评论(0) 推荐(0)
摘要: 1 cmake policy是什么? cmake policy可以理解为cmake的语法标准,也就是说,它规定了cmake在解析CMakeLists.txt文件时的行为。 2 cmake policy的用途是什么? cmake在进化的过程中,需要关心两件事情,一是对以前的版本兼容,这样的话,以前的开 阅读全文
posted @ 2017-03-30 08:59 PhoenixTree(梧桐树) 阅读(1908) 评论(0) 推荐(0)
摘要: 1 libcurl是什么 libcurl是一个支持多个平台支持多个协议的数据传输客户端库。 2 我们可以用libcurl来做什么 可以用它来写库同服务器端交流。 3 libcurl怎么用 CURL *curl; CURLcode res; curl = curl_easy_init(); if (c 阅读全文
posted @ 2017-03-29 14:46 PhoenixTree(梧桐树) 阅读(195) 评论(0) 推荐(0)
摘要: 1 CMAKE_GENERATOR 用来生成工程构建文件的工具的名字,比如visual studio 12,2013,比如xcode,不同的平台使用不同的生成工具。 2 MATCHES if (variable MATCHES regex) if (string MATCHES regex) 如果变 阅读全文
posted @ 2017-03-29 09:39 PhoenixTree(梧桐树) 阅读(599) 评论(0) 推荐(0)
摘要: 1 如何对一个使用一种特定的字符编码的字符串进行split 比如"你好、我好、她也好!"这个字符串,它是utf-8编码的,现在我要用c/c++实现一个split函数,这个函数将这个字符串分成三个子串“你好”、“我好”和“她也好!”。 2 阅读全文
posted @ 2017-03-28 20:03 PhoenixTree(梧桐树) 阅读(255) 评论(0) 推荐(0)
摘要: 1 normal variable、cache variable、environment variable 1.1 什么是普通的cmake变量 1.2 什么是cmake cache变量 cmake cache entry是cmake-gui使用的变量,它是一种用户可以在cmake的ui中设置的变量。 阅读全文
posted @ 2017-03-28 17:28 PhoenixTree(梧桐树) 阅读(737) 评论(0) 推荐(0)
摘要: 1 windows的动态库 在要export的函数声明的前面加上__declspec(dllexport)标识这个函数是从该dll中export出来给其它模块使用的。 declspec是declare specifier的缩写,即声明某种说明符。 2 linux的动态库 使用extern关键字标识这 阅读全文
posted @ 2017-03-28 15:55 PhoenixTree(梧桐树) 阅读(1051) 评论(0) 推荐(0)
摘要: 1 vs工程输出了dll和lib,分别是什么,有什么用? 当设置工程property的Project Defaults的Configuration Type为dll时,不光会生成该动态链接库的dll文件,还会生成该动态链接库的lib文件。 当设置工程property的Project Defaults 阅读全文
posted @ 2017-03-28 13:52 PhoenixTree(梧桐树) 阅读(277) 评论(0) 推荐(0)
摘要: Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer Add a new string value "Max Cached Icons" with value "2000" 然后,重新启动windows 阅读全文
posted @ 2017-03-27 15:40 PhoenixTree(梧桐树) 阅读(270) 评论(0) 推荐(0)
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 70 下一页