cygwin

Spaces in Cygwin/bash aliases?

一曲冷凌霜 提交于 2019-12-23 07:31:20
问题 I am attempting to set up aliases for my Cygwin bash shells, to run programs contained in the standard Windows C:\Program Files subdirectories. Unfortunately, the alias command really doesn't like spaces in a directory name, and nothing I've tried seems to work. I'm trying to get the following running: alias npp='/cygdrive/c/Program Files/Notepad++/notepad++.exe' I am currently cheating and using a soft link, but I would prefer to use an alias. 回答1: Escape Characters: alias npp="/cygdrive/c

sudo command not found on Cygwin

左心房为你撑大大i 提交于 2019-12-23 06:48:21
问题 I am currently trying to install and update a few packages on a Windows OS. The only matter is that I am using Cygwin in order to type the commands through a terminal (as I'm aware, I can type in Linux type commands such as cd, ls etc. on Cygwin - I may be wrong). However, when I try to install a package like: sudo apt-get install paparazzi-dev I get the reply: -sh: sudo: command not found. Does anyone have an idea as to how I can fix this problem? 回答1: Cygwin is not a full Linux distribution

Report shows “no time accumulated” for gprof using Eclipse CDT

霸气de小男生 提交于 2019-12-23 05:34:09
问题 After compiling with flags: -O0 -p -pg -Wall -c on GCC and -p -pg on the MinGW linker, the eclipse plugin gprof for shows no results. After that I did a cmd call using gprof my.exe gmon.out > prof.txt , which resulted in a report witth only the number of calls to functions. Flat profile: Each sample counts as 0.01 seconds. no time accumulated % cumulative self self total time seconds seconds calls Ts/call Ts/call name 0.00 0.00 0.00 16000 0.00 0.00 vector_norm 0.00 0.00 0.00 16 0.00 0.00 rbf

Android ndk build mysteriously failing under cygwin with “Error 126”

允我心安 提交于 2019-12-23 05:27:46
问题 I have a JNI application built by ndk-build (using Android NDK r5b and cygwin make 3.81). The build usually works, by occasionally fails with: ... Compile++ thumb : components <= Component.cpp make: *** [/c/.hudson/jobs/Nightly/workspace/application/obj/local/armeabi/objs/components/Component.o] Error 126 make: Leaving directory `/c/.hudson/jobs/Nightly/workspace/application/obj/local/armeabi/objs/components' There is no other error. Make than exits with status 2. It happens in different file

Cygwin chmod 777 command made other users 'access denied' in Windows 7

南笙酒味 提交于 2019-12-23 05:22:19
问题 I am administrator of a Windows 7 system, created some spreadsheets (.CVS files) and changed the permission of those files by CHMOD 777 command (from CYGWIN console), so that other users can get full access to read and write. But, after the permission changed to (chmod 777), other users (non administrators) can't get access to those files, it errors 'access denied'. In the recent past, I did similar file permission change in Windows XP without any problem, why it is happening in Windows 7 ?

getting Cygwin to know about microsoft cl and nmake?

和自甴很熟 提交于 2019-12-23 05:16:33
问题 I am trying to compile the Fortran runtime library ( f2c ) in Cygwin using this command: nmake -f makefile.vc all Per instruction given in the package, first I have to let Cygwin know about Microsoft cl compiler and nmake . How can I do this in Cygwin? I already added vcvarsall.bat to the Cygwin.bat file but I don't know what I can do for nmake . At this moment, I get this error: -bash nmake: command not found 回答1: nmake executable path should be present in your $PATH environment variable.

cygwin on win7 problem - Could not use curl because “cygcurl-4.dll” is missing

柔情痞子 提交于 2019-12-23 04:57:36
问题 Where do I find it and how do I install it? Thanks Follow-up: I did use the full installation and this specific file is not there. 回答1: In my installation, it's in the CygWin bin directory, and that's a full install with no external stuff. You should ensure that you did a full install of your CygWin. I've had enough troubles before with partial installs to ensure I never try them again. Based on your update where you state that you did a full install, I can only suggest you try it again. As I

Building CUnit with cygwin on windows

好久不见. 提交于 2019-12-23 04:43:34
问题 Can anyone explain me, how to build CUnit on Windows using cygwin? Only found an example using mingw Building CUnit on Windows Call of make Fails (no such command). Anyone help me? 回答1: There was a Problem with the make and the "config"-file was missing. After this I can create the libs. 来源: https://stackoverflow.com/questions/29891151/building-cunit-with-cygwin-on-windows

Compile Cygwin project in Eclipse

て烟熏妆下的殇ゞ 提交于 2019-12-23 04:29:07
问题 I have a c++ Project that was compiled with the cygwin toolchain, now I want to use Eclipse to compile and test it. If I create a project (cygwin toolchain is set in the options) I get the error: make: *** No rule to make target `all'. 7wWin line 0 C/C++ Problem In Cygwin I use: cd $BUILDDIR make make install Can Eclipse create it's own makefile? And how to setup that. Better would be a good tutorial how to compile a Cygwin c++ project with Eclipse. 回答1: Check the following pages: http:/

Compile Cygwin project in Eclipse

牧云@^-^@ 提交于 2019-12-23 04:29:04
问题 I have a c++ Project that was compiled with the cygwin toolchain, now I want to use Eclipse to compile and test it. If I create a project (cygwin toolchain is set in the options) I get the error: make: *** No rule to make target `all'. 7wWin line 0 C/C++ Problem In Cygwin I use: cd $BUILDDIR make make install Can Eclipse create it's own makefile? And how to setup that. Better would be a good tutorial how to compile a Cygwin c++ project with Eclipse. 回答1: Check the following pages: http:/