cygwin

Install Protocol Buffers on Windows

点点圈 提交于 2021-02-05 19:35:53
问题 I am unable to find clear instructions to install Google Protocol Buffers (including compiler) on Windows x64 platform. I went through the instructions README file for compiler and source: For Compiler: To install, simply place this binary somewhere in your PATH I added system variable to Path: PROTOC 'C:\dev_tools\protoc-2.4.1-win32' I am stuck on installing Protocol Buffers source using Cygwin. I tried following Unix instructions provided in the readme file: To build and install the C++

Install Protocol Buffers on Windows

六月ゝ 毕业季﹏ 提交于 2021-02-05 19:34:59
问题 I am unable to find clear instructions to install Google Protocol Buffers (including compiler) on Windows x64 platform. I went through the instructions README file for compiler and source: For Compiler: To install, simply place this binary somewhere in your PATH I added system variable to Path: PROTOC 'C:\dev_tools\protoc-2.4.1-win32' I am stuck on installing Protocol Buffers source using Cygwin. I tried following Unix instructions provided in the readme file: To build and install the C++

Find command find directories that were created after a certain date under Linux/Cygwin

天涯浪子 提交于 2021-02-05 02:36:52
问题 I want to use the find command to find these directories: Access: 2013-12-13 10:59:46.190886900 -0500 Modify: 2013-12-03 07:04:02.995890600 -0500 Change: 2013-12-03 07:04:02.995890600 -0500 Birth: 2013-12-02 07:04:02.000000000 -0500 (I want a time after '12-03') This is the command I ran but it still lists older directories: find . -type d -newerBt '2013-12-03 00:00:00' -exec du -h {} \; How can I modify this line to find the directories created after that date? What is the difference between

Find command find directories that were created after a certain date under Linux/Cygwin

眉间皱痕 提交于 2021-02-05 02:36:02
问题 I want to use the find command to find these directories: Access: 2013-12-13 10:59:46.190886900 -0500 Modify: 2013-12-03 07:04:02.995890600 -0500 Change: 2013-12-03 07:04:02.995890600 -0500 Birth: 2013-12-02 07:04:02.000000000 -0500 (I want a time after '12-03') This is the command I ran but it still lists older directories: find . -type d -newerBt '2013-12-03 00:00:00' -exec du -h {} \; How can I modify this line to find the directories created after that date? What is the difference between

Is there a default return value of C++ functions? [duplicate]

房东的猫 提交于 2021-02-04 18:41:08
问题 This question already has answers here : Why does flowing off the end of a non-void function without returning a value not produce a compiler error? (9 answers) Closed 6 years ago . I am surprised that a file containing the following lines of code is successfully compiled and linker produces an executable. I thought that all functions, except main , must have a valid return statement unless the return type is void . int foo(){} double bar(){} int main(){} What am I missing? 回答1: I thought

Is there a default return value of C++ functions? [duplicate]

与世无争的帅哥 提交于 2021-02-04 18:40:27
问题 This question already has answers here : Why does flowing off the end of a non-void function without returning a value not produce a compiler error? (9 answers) Closed 6 years ago . I am surprised that a file containing the following lines of code is successfully compiled and linker produces an executable. I thought that all functions, except main , must have a valid return statement unless the return type is void . int foo(){} double bar(){} int main(){} What am I missing? 回答1: I thought

make: g++: Command not found

雨燕双飞 提交于 2021-02-04 16:56:22
问题 I've checked similar posts and anyone solve my problem. I's very simple but I'm new with eclipse. I'm trying to make a simple example and I'm having this problem. the make file is just this all: hello.exe clean: rm Hello.o Hello.exe hello.exe: hello.o g++ -g -o hello.exe hello.o hello.o: g++ -c -g main.cpp And I get this error "make: g++: Command not found" Thanks for helping. 回答1: You need to install the development tools from GNU. I assume you're on windows, in which case you have two

在win10环境下安装Cygwin,可以GCC编译

给你一囗甜甜゛ 提交于 2021-02-02 12:21:01
参考博客: http://www.cnblogs.com/hchacha/p/7147603.html 1. 上述网址提供了setup-x86_64.exe,用于安装 Cygwin 2. 我在安装时,选择了如下网址去下载mirros: 3. 现在的cywin默认是最小化安装,但并不包括Gcc,如果要使用gcc,g++,make,gdb工具,是需要选择这些包的 gcc-core、gcc-g++、make、gdb、binutils,五个包都在Category下的Devel下 。 4. 后来,我又安装了 git vim openssh 3个组件,安装流程如下: 点开setup-x86.exe,一路Next:选择在线安装 -> 填写根路径cygwin -> 填写下载的临时安装文件保存路径cygwinsetup -> 选择镜像站点(选国内163或阿里云) ->点击列表ALL 然后通过search查找,将旁边的Default将其切换到Install状态 ->继续一路Next完成安装 来源: oschina 链接: https://my.oschina.net/u/4311561/blog/3552417

win10下安装Cygwin配置gcc编译环境

China☆狼群 提交于 2021-02-02 12:20:43
首先要说明的是,我个人安装cygwin的用途是为了使用kenlm工具训练通及语言模型。 注: 统计语言模型工具有比较多的选择,目前比较好的有srilm以及kenlm,其中kenlm比srilm晚出来,训练速度也更快,而且支持单机大数据的训练。 因为使用该工具在Linux环境下比较方便,我是win10系统,所以需要使用cywin 64模拟linux环境 (先确保linux环境已经按照1.36.0的Boost和zlib。) 然后gcc版本需要是4.8.2及以上。 之后出现的界面,默认为第一个选项,意思是从网络下载并安装(从官网下载的不是完整安装包,只是安装引导程序) 之后都没什么问题,就默认下一步就ok了 然后会出现一个界面,ustc是中科大的镜像,neusoft是东软的镜像下载速度较快,当然也可也选香港的(一个hk的什么网站,很好找)。 在搜索框出处分别搜索 gcc-core、gcc-g++、make、gdb、binutils,以上所有项目都在 devel 文件夹下。点击想要下载的包后面的skip即可。 然后点击下一步。 将安装目录下的 bin目录 添加到 Path 环境变量。我用的是 windows 10,添加环境变量的具体方法自行百度。 最后在terminal中 输入gcc -v + enter,出现如下界面即为安装成功。 来源: oschina 链接: https://my

Windows下Cygwin 的安装

早过忘川 提交于 2021-02-02 02:54:51
在安装时, 单击加号 (+) 展开对应的类别;单击 “循环” 标志在 Skip(忽略此包)和包的所有可用版本之间循环。如果 Cygwin 提供一个实用程序的多个版本,应该选择满足您的需求的实例。顺便说一下,如果选择 B 列,就会下载二进制包;选择 S,也会下载源代码。 我用的windows xp系统,安装完Cygwin之后,点击图标,出现cygiconv-2.dll找不到的错误。 在网上下载一个 cygiconv-2.dll组件之后,并把它放入C:\WINDOWS\system32目录下。然后就OK了。 在安装完Cygwin 之后,点击Cygwin,输入基本命令ls等,出现Command not found。 原因是没有设置环境变量。 只需将Cygwin.bat文件修改为: @echo off set CYGWIN=tty notitle glob set PATH=%PATH%;d:/cygwin/bin;d:/cygwin/sbin;d:/cygwin/usr/bin;d:/cygwin/usr/sbin;d:/cygwin/usr/local/bin set LD_LIBRARY_PATH=d:/cygwin/lib;d:/cygwin/usr/lib;d:/cygwin/usr/local/lib d: chdir d:\cygwin\bin bash --login -i