cygwin

Cygwin bash syntax error - but script run perfectly well in Ubuntu

#!/bin/bash if test "$#" == "4"; then echo "$*"; else echo "args-error" >&2; fi; This little code snippet troubles me a lot when I tried to run it on both Ubuntu and Cygwin. Ubuntu runs bash version 4.0+ whereas Cygwin runs 3.2.49; But I reckon version collision shall not be the cause of this, this code runs well under fedora 10 which...

Some help required while working on Java and Cygwin together

Hello .. I am new to java and also cygwin . I do not have in detailed knowledge of both . I need some help.. I simple steps i will try to explain my problem. 1) I am working on tinyOS . its open source OS , used for wireless sensor networks. It provides java libraries to work on communication (PC to sensor) 2) I am working on windo...

cygwin support for ucontext.h user context switching

It appears that cygwin doesn't support user context switching (supported by ucontext.h). Given I need to developed a user-context switching application under cygwin, is there any solution for this? ...

cygwin slow file open

My application uses fopen to open a lot of files. While in linux opening and reading thousand of files doesn't even take a second; in cygwin it takes more than 5 seconds. I think it is because path conversion functions in cygwin dlls. 'open' function is a bit faster. If I use -mno-cygwin it becomes very fast but I can't use it. Is ther...

Eclipse CDT: cannot debug or terminate application

I have Eclipse set up fairly nicely to run the G++ compiler through Cygwin. Even the character encoding is set up correctly! There still seems to be something wrong with my configuration: I can't debug. The pause button in the debug view is simply disabled, and no threads appear in my application tree. It seems that gdb is simply not co...

run windows command from bash with output to standard out?

Folks, I'm using git tools such as git bisect run which need to call a command to build and test my project. My command to do is nant which is a windows program. Or a build.cmd script which calls nant. It's easy to get the bash to call the nant build to run. But the hard part is how to get the standard output written to a file? I eve...

Trouble compiling libpng (& zlib) using RVCT 4.0's armcc compiler

Hi, I'm trying to compile libpng & zlib using the RVCT 4.0 armcc compiler. However armcc cannot find 'fcntl.h', which I assume is a standard C library. Cygwin has fcntl.h (and the associated files types.h and _types.h), but when I use those, I get various compilation errors. Should I be using Cygwin's version of standard C libraries, o...

Issue on file existence in C

Hi All, Here is my code which checks if the file exists : #include<stdio.h> #include<zlib.h> #include<unistd.h> #include<string.h> int main(int argc, char *argv[]) { char *path=NULL; FILE *file = NULL; char *fileSeparator = "/"; size_t size=100; int index ; printf("\nArgument count is = %d", argc); if (argc <= 1...

Backspace on Cygwin Screen not working for Windows 2003 Server?

I updated a working Cygwin/Screen setup on Windows 2k3 Server to Cygwin v1.7.2 and Screen 4.00.03. After updating, backspace no longer works. I haven't made any changes to my system or configuration. The Cygwin update went fine, and I don't have any custom changes in /etc. Any ideas? ...

error 127 when running "git svn init" on cygwin

I'm trying to convert a local SVN repository to git using git-svn under cygwin and failing. This is what happens: $ git svn init -t tags -b branches -T trunk file:///cygdrive/e/repository/project init: command returned error: 127 Any ideas? ...

Fail to install mysql on cygwin, No curses/termcap library found

Fail to install mysql on cygwin. When do ./configure, experienced following error: checking for termcap functions library... configure: error: No curses/termcap library found any idea? ...

Compiling flex file into dll.

Hi, I've got a lexer created with flex (cygwin). Normally I compile it to an .exe file. For the newest project I need a lexer to use in a bigger C# program running on Windows XP. Of course I can execute a file using System.Diagnostics.Process. But it is not the best solution for me as I want that program to run on several machines. H...

Bash Shell; read command; using Cygwin on Windows 7

Okay so I am having this problem. I write up a script to be run in cygwin on Windows. I've tried a bunch of basic example scripts in case it was my scripts problem. So I tried this: #!/bin/bash echo -e "Enter your name and press [ENTER]: \c" read var_name echo "Your name is: $var_name" Then I will run it and I enter a name for var_n...

Internal Builder: Cannot run program "g++": The system cannot find the file specified.

****** Internal Builder is used for build ****** g++ -ot1.o ..\t1.cpp Internal Builder: Cannot run program "g++": The system cannot find the file specified. Build error occurred, build is stopped I am new to eclipse, on windows XP, want to run c/c++ progms + linux build (cygwin is installed with needed packages) Above sa...

conflicting cygwin and windows path

if my windows path looks like this: c:\ruby\bin;c:\cygwin\bin then when i go into cgywin and enter "ruby" it will execute the ruby from c:\ruby\bin, failing to find the ruby installed in my cygwin. I have to exclude that path so cygwin would execute the one from /usr/bin. But i need those 2 paths, since i want to run ruby in windows t...

Cannot Open Shared Object cygmpfr-1.dll

I'm testing CeGCC, that is a gcc built to cross-compile applications to Windows CE devices. As everyone do to test compilers, I've done a Hello World program: #include <stdio.h> int main() { printf("Hello, World!"); return 0; } As I'm using Windows now(because this is my other laptop), I'm using Cygwin. But when I tried to comp...

Any idea why ctags won't recurse on Cygwin?

I'm getting "skipping XXX: it is not a regular file" every time I run ctags -R XXX. For one reason or another, ctags on Cygwin isn't recursing directories. Surely, I must be doing something stupid. Whenever I try the de-facto standard ctags -R in my project root, it complains that I didn't specify any input files. When I specify a direc...

How do you run a cygwin-compiled program from windows c# (visual studio)?

HI, I would like to run a cygwin compiled program in visual studio using c# Thanks :) L BTW: System.Diagnostics.Process MyProcess = new System.Diagnostics.Process(); MyProcess.StartInfo.UseShellExecute = false; MyProcess.StartInfo.FileName = "C:\\cygwin\\Cygwin.bat"; MyProcess.StartIn...

How to format a dos path to a unix path on cygwin command line

When using Cygwin, I frequently copy a Windows path and manually edit all of the slashes to Unix format. For example, if I am using Cygwin and need to change directory I enter: cd C:\windows\path then edit this to cd C:/windows/path (Typically, the path is much longer than that). Is there a way to use sed, or something else t...

Difficulty running OpenSURF code in Netbeans IDE 6.8

I am trying to run the OpenSURF code(used for point matching) obtained from the following website: http://www.chrisevansdev.com/computer-vision-opensurf.html This codebase uses OpenCV library(which is already installed on my computer) and I have included its path in the Environemtal variables. However, when I try to build the OpenSURF ...