cygwin

NetBeans6.9 C++ runtime error

In NetBeans 6.9 in windows version I use CygWin for C++ programming.I can compile my simple program and BUILD SUCCESSFUL message show by output window in NetBeans but when run my project this message show in external terminal : /cygdrive/c/Users/SjB/Documents/NetBeansProjects/CppApplication_3/dist/Debug/Cyg win-Windows/cppapplication_3....

Make test error (Festival 2.0.95 & Windows XP & Cygwin)

I am following these instructions: http://www.cstr.ed.ac.uk/downloads/festival/2.0.95/do_test And after cd ../speech_tools make test I have this: ___________ Test Failed hash regression status. FAILED Any Idea? After that,if I try: cd ../festival make test I get: ... voice script status: CORRECT test modes (script) text mo...

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 files: file1.cpp file1.h file2.cpp file2.h file3.cpp file3.h .... What would be the makefile...

Build Linux Packages on Cygwin

Is it a good idea to build RPMs and Debian packages on Cygwin? Our release server is windows, so our options are either that or start up VMs with linux to handle the task. I'm just not sure if VMs are taking a nuclear bomb to an ant. Is there a way to do the building in Cygwin? If so, how? So far I've found some clues...apparently Cygwi...

Different between msysgit and cygwin + git ?

Hello What is the different between msysgit and cygwin + git? Now I'm use msysgit, but i don't like the Git Bash (you can't resize or copy/paste) and think about to change to cygwin, because then I could use mintty. ...

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 ~/scripts/myscript.pl` Which is annoying! I was wondering if there's a neat way of usin...

autom4te-2.65: need GNU m4 1.4 on Windows cygwin

User > ~/mysql-5.1.46 $ automake .... sh: fork: Resource temporarily unavailable autom4te-2.65: need GNU m4 1.4 or later: /cygdrive/e/cygwin/bin/m4 automake-1.10: autoconf failed with exit status: 1 I did run ./configure and want to do make now.. Please suggest ...

Cygwin cron starts at wrong time

I have a cron job starting at 1 o'clock everyday 0 1 * * * somescript the script downloads updates my files, however when I check my modified date the earliest file says it was modified at 3:30 A.M. and this happened for 2 days now, so I tried */1 * * * * date >> c:/date.txt and saw that the date is fine. Is there something else th...

Problem creating an exe from C

Hello. I've made a small application in C with Netbeans. I've ran the application in Netbeans and it created an exe. I used that exe and it worked fine on my comp but when I move it to other comp it says: "This application failed to start because cygwin1.dll was not found. Re-installing the application may fix this problem." How can i c...

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 \$1,\$2}'" echo $awk_prog awk $awk_prog $FILENAME However, when I pass the string to awk, I always...

DOS-reported error: Bad file number

I have a batch file that tries to compile a static library using Borland C++ Builder 6.0 It is called from Borland make (makefile created with bpr2mak) which is called from a .bat file (used to compile the whole project with Visual Studio and some Borland C++ Builder legacy projects), which is called from a bash shell script running ins...

How to launch a java CLI program, developped in Eclipse, from Cygwin bash shell ?

Hi all, I wanted to share here a useful script of mine. I am developing some java CLI software under Eclipse. For time to time, I find it useful to run it from the command line with custom arguments (with Cygwin in my case), instead of creating a new "Run configuration" in eclipse. My eclipse project depends on some other "core" projec...

Compile GTK+ with Cygwin

I have created an application in linux with GTK2 as GUI. It uses some linux-specific headers (e.g. arpa/inet.h) so to run under Windows I have to compile it with Cygwin. I downloaded the latest installer and choose to install GTK2 and its dependencies. My program compiled fine. But it needs X server to be running! I has old-style, ugly g...

running sun java from cygwin

I have installed cygwin in C:\deepan\cygwin\ directory... how do I reinstall it in C:\ directory? I want to be able to run java in C:\programfiles\java\ folder from cygwin ...

grep: operation not supported on socket

I get this error on cygwin 1.7.5-1 under zsh and rxvt when I try to run grep "getDirectories" * It seems to happen once per directory. I successfully ran this operation many times under cygwin 1.7.1 just a few days ago before I had to get a new laptop. Anyone know what is causing this error? ...

Problem to compile a C-program by GCC in the latest Cygwin due to tgmath.h and complex.h

I have successfully compiled a C-program with GCC in Mac OS X and Linux, but have got the following error message in Cygwin 1.7.5: /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/tgmath.h:38:21: error: complex.h: No such file or directory I have noticed that several guys reported that tgmath.h has problems in Cygwin. However, due to the la...

Using Windows Python from Cygwin

I've been using Cygwin on Windows recently. I want to use the Windows installation of Python, so during testing I'm using /cygdrive/c/Python26/python.exe myfile.py rather than python myfile.exe. This is working almost perfectly, except for printing. When I run the Windows Python from Cygwin the output doesn't print until execution finis...

Why does a file checked into CVS become double-spaced?

Problem Frequently (but not every time) when using CVS to check in files like: .java, .cs, .xml, etc, every line of the file is gets a carriage return. Example: File before check-in by a team member: // Begin file class Foo { public Foo() { // Do step 1 // Do step 2 } } // End file Fil...

Why does my .git folder get deleted randomly when I restart my computer ?

My .git folder disappears from times to times. The first time I thought that I had erase it by mistake, but this is the 3rd times it occurs, so there must be something. I use git-svn and cygwin over windows, it seems to occurs mostly after a PC restart, could it be something with rxvt, that could kill references to some folders ? I can't...

Python threading + socket IO lockup problem in Cygwin

I am having a weird concurrency issue with Python on Cygwin. I am running two threads: A thread which sends UDP packets at regular intervals A main thread which waits for KeyBoardInterrupt and when it receives one, it tells the UDP thread to stop sending via a boolean flag This works just fine under Linux (python 2.6) and Windows (Py...