Questions tagged [cygwin]

Cygwin is a collection of GNU and other Unix-like FOSS tools which run on MS Windows and provide functionality similar to a GNU/Linux distribution while (mostly) conforming to POSIX specifications. Use this tag for questions about developing programs and/or scripts to run in this environment. Questions on the *use* of tools in a Cygwin environment are more appropriate for Super User (https://superuser.com).

Cygwin is a Unix-like environment and command-line interface for Microsoft Windows. Cygwin provides native integration of Windows-based applications, data, and other system resources with applications, software tools, and data of the Unix-like environment. Thus it is possible to launch Windows applications from the Cygwin environment, as well as to use Cygwin tools and applications within the Windows operating context.

Cygwin consists of two parts: a dynamic-link library () as an API compatibility layer providing a substantial part of the API functionality, and an extensive collection of software tools and applications that provide a Unix-like look and feel.

Cygwin is:

  • a collection of tools which provide a Linux look and feel environment for Windows.
  • a DLL (cygwin1.dll) which acts as a Linux API layer providing substantial Linux API functionality.

Cygwin is not:

  • a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows.
  • a way to magically make native Windows apps aware of UNIX® functionality like signals, `ptys, etc. Again, you need to build your apps from source if you want to take advantage of Cygwin functionality.

The Cygwin DLL currently works with all recent, commercially released x86 32 bit and 64 bit versions of Windows, with the exception of Windows CE and Windows NT4.

Official Website: http://www.cygwin.com/

Useful Links:

7878 questions
3
votes
3 answers

how to pre-construct awk statement to pass to awk on command line?

I have a shell script that constructs an awk program as a string then pass that string to awk. This is because I want to use values of shell variables in the awk program. My code looks like this: awk_prog="'{if (\$4~/$shell_var/) print…
Martin08
  • 20,990
  • 22
  • 84
  • 93
3
votes
1 answer

Getting gvim to automatically translate a cygwin path

I love cygwin and the native windows version of gvim and I use them together all the time. The only problem I have is with cygwin path names. Gvim for windows doesn't understand them so I have to resort to typing things like: gvim `cygpath -wa…
Benj
  • 31,668
  • 17
  • 78
  • 127
3
votes
1 answer

the command git branch for svn-git on cygwin

I use the svn git supported by the Cygwin packages[i.e. setup.exe ]. I tried to create a second local branch on the local repo, and add a new file on the second branch. This new file should be only in the second branch since I haven't merge this…
Anakin Tung
  • 419
  • 5
  • 17
3
votes
0 answers

Compile Gtk# 2.99.3 in Cygwin unknown types uid_t and pid_t

After compiling last version of mono in Cygwin64 (last version) I compiled some C# tests with the mono c# compiler (msc) I want to make some tests with Gtk so I downloaded the source code and try to compile... after solving some minor issues that…
ZEE
  • 2,931
  • 5
  • 35
  • 47
3
votes
3 answers

cygwin binary exec format error

I have a script file that I was given to run in windows using Cygwin. When I try to use this file I get the following error -bash: /sigdet/filename: cannot execute binary file: Exec format error. sigdet is the folder within the Cygwin directory…
3
votes
1 answer

Git Clone under Cygwin hangs

This is something of a mystery. I just installed Cygwin on my Windows machine (Windows 8). The very first thing I tried was git clone (I was cloning a private repository using ssh, rather than anything on github). It announced cloning into…
Daryl McCullough
  • 303
  • 5
  • 20
3
votes
2 answers

Makefile for compiling a number of .cpp and .h into a lib

I am running Windows 7 with gcc/g++ under Cygwin. What would be the Makefile format (and extension, I think it's .mk?) for compiling a set of .cpp (C++ source) and .h (header) files into a static library (.dll). Say I have a variable set of…
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
3
votes
1 answer

Cygwin w/ TeXnicCenter or WinEdt - Can they be sewn/integrated to work together

Is is possible to connect one of either WinEdt or TeXnicCenter (Windows variant) such that it uses a TeTeX distribution of LaTeX that is included from a Cygwin distribution? I simply cannot use MiKTeX because my bash-specific scripts called from…
panagioti
  • 426
  • 4
  • 14
3
votes
0 answers

Tie freezes spawn of child processes

edit: did some sorting and more explaining after comments I programmed a small client-server application, and then added logging which at first worked and now gets my program to freeze. The server starts some child processes, which communicate via…
chenino
  • 454
  • 2
  • 7
  • 19
3
votes
1 answer

Git P4 under Cygwin: Submit fails with "Patch does not apply"

I'm attempting to use git-p4 under Cygwin. The "clone" and "rebase" parts of the workflow appear to be working correctly, but I am unable to "submit". I'm guessing it may have something to do with a line-ending convention. I've looked at this…
jstevenco
  • 2,913
  • 2
  • 25
  • 36
3
votes
1 answer

How to capture event "down" "up" for a keystroke or a mouse button in C

I found numerous examples that use either X11 or linux/input.h unfortunately I am on Cygwin where linux/input.h does not exist. I would like a simple example that I can use to detect events such as: Key down Key up Or Mouse button down Mouse…
nowox
  • 25,978
  • 39
  • 143
  • 293
3
votes
2 answers

undefined reference to `WinMain' : When using Cygwin, SDL2 and Netbeans

any help here would be appreciated. Ive really racked my brains at this, sooo. I have installed cygwin, and Netbeans and have been successfully deving, compiling and running a small SDL-1.2 windows game with no problems. The problem has come now…
Tristus
  • 123
  • 1
  • 13
3
votes
1 answer

Java JNI EXCEPTION_ACCESS_VIOLATION

I'm new to JNI and attempting to get a simple Hello World program to work using Windows 7 and cygwin's gcc compiler. Here's the various components: Hello.java: public class Hello { public static native void sayHello(); public static void…
Gary
  • 83
  • 1
  • 9
3
votes
1 answer

How to install Parse CloudCode in windows7 32bit?

we are developing android app using parse CloudCode,we unable install CloudCode setup in windows7 32bit using Cygwin terminal getting error at installer.sh command line Please guide us,where we are doing mistake..! We followed this video In this…
3
votes
1 answer

moved from cygwin to VisualStudio2013, error LNK2019, snprintf(), c

I'm trying to run a unix compiler-project written in c with MS Visual-Studio 2013 and I can't get rid of the following error: error LNK2019: unresolved external symbol "_snprintf" referenced in function "PUBLIC void SyntaxError( int Expected,…
ducii
  • 33
  • 3