cygwin

How to use diff and patch in Cygwin on Windows?

徘徊边缘 提交于 2019-12-23 18:22:55
问题 I follow many articles out there but I still don't know how to use diff and patch in Cygwin Here I create 2 files in Windows Explorer origin.txt one two three new.txt one four five Then I diff -u origin.txt new.txt > file.patch which results this --- origin.txt 2013-03-21 15:53:20.062956800 +0700 +++ new.txt 2013-03-21 15:53:29.191869600 +0700 @@ -1,3 +1,3 @@ one -two -three \ No newline at end of file +four +five \ No newline at end of file Then I patch origin.txt < file.patch which show

tdbloader on Cygwin: java.lang.NoClassDefFoundError

∥☆過路亽.° 提交于 2019-12-23 17:57:37
问题 I'm trying to use tbdloader on Cygwin (Windows 7 with the latest Java installation). This is the tbdloader documentation: http://jenawiki.hpl.hp.com/wiki/TDB/Commands This is the wrapper script I'm using to call tdbloader on my machine: #!/bin/bash # Cygwin script to import large NT files in TDB. CD /cygdrive/c/mypath/TDB-0.8.10 echo "TDB found. Setting path" export TDBROOT=/cygdrive/c/mypath/TDB-0.8.10 export PATH=$PATH:$TDBROOT/bin CD /cygdrive/c/mypath/ontodata/ echo "Running import..."

error while loading shared libraries: ?: cannot open shared object file: No such file or directory

大城市里の小女人 提交于 2019-12-23 17:06:37
问题 I'm trying to diagnose (and fix) a problem that sits on the boundary of several components; any insights into how to either gain more information or outright resolve the issue is very much appreciated. I have an application which starts as a C program that may launch a Java program and may then launch the same C program in a recursive fashion. It has been working on both Linux and Cygwin. Some bugs were found in the program launching paradigm within Java, and it was updated from the simpler

cannot compile anything with gcc on cygwin32; missing cygisl-10.dll

感情迁移 提交于 2019-12-23 16:43:27
问题 I have a problem wit compilation with gcc on 32-bit cygwin. The message is: C:/cygwin/lib/gcc/i686-pc-cygwin/4.9.3/cc1plus.exe: error while loading shared libraries: cygisl-10.dll: cannot open shared object file: No such file or directory And that is true. I have cygisl-13.dll instead of cygisl-10.dll. I'm not sure whether this is just more recent version of the same library or something different. On the other hand I do have cygisl-10.dll but not cygisl-13.dll in cygwin64 and I'm able to

cd(1) and variables with spaces (cygwin)

人走茶凉 提交于 2019-12-23 15:54:19
问题 I've been having quite an unusual problem. In my .bashrc file, I have set a variable to a path name with spaces in it. I had a feeling this would cause problems, but I played around with setting an alias in a similar way and got it to work like so: alias npp="\"/cygdrive/c/Program Files (x86)/Notepad++/notepad++.exe\"" Now, I thought I could use the same trick for my environment variable - export PRO="\"/cygdrive/c/Program Files (x86)\"" This worked. Kind of. [myName] $ echo $PRO "/cygdrive/c

unable to accumulate time using gprof - the gnu profiler

强颜欢笑 提交于 2019-12-23 12:35:36
问题 I am running cygwin on windows and using latest version of gprof for profiling my code. My problem is that the flat profile shows zero sec for each of the functions in my code, I even tried to loop the functions(tried a for loop for a million) but gprof is unable to accumulate any time .Please help . Here is one of my sample function. bool is_adjacent(const char* a ,const char* b) { for(long long iter=0;iter<=1000000;iter++){ string line1="qwertyuiop"; string line2="asdfghjkl"; string line3=

conflicting cygwin and windows path

和自甴很熟 提交于 2019-12-23 10:14:54
问题 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 too. Anyway to have cygwin have its own path and not inherit those in windows? thanks. 回答1: Add an entry into your .profile to set the path to whatever you want

How to run run C++ apps in android?

妖精的绣舞 提交于 2019-12-23 09:07:13
问题 How to run c++ applications in android using cygwin. Any tutorial in this regard is appreciated.. 回答1: You cannot directly run C++ applications in Android. Android can run only applications written using the Android SDK, but yes you can re-use your native(C/C++) libraries for Android. You will have to recompile all the native libraries specifically for Android. And you do need the source code for all 3rd party native libs you plan to use simply because Usually when we compile and link these

sort: string comparison failed Invalid or incomplete multibyte or wide character

荒凉一梦 提交于 2019-12-23 09:03:06
问题 I'm trying to use the following command on a text file: $ sort <m.txt | uniq -c | sort -nr >m.dict However I get the following error message: sort: string comparison failed: Invalid or incomplete multibyte or wide character sort: Set LC_ALL='C' to work around the problem. sort: The strings compared were ‘enwedig\r’ and ‘mwy\r’. I'm using Cygwin on Windows 7 and was having trouble earlier editing m.txt to put each word within the file on a new line. Please see: Using AWK to place each word in

undefined reference to `_GetAdaptersAddresses@20' - but I included -liphlpapi

北慕城南 提交于 2019-12-23 07:57:36
问题 I'm using gcc under cygwin to write some code that calls GetAdaptersAddresses from iphlpapi.h in my code I've set _WIN32_WINNT above the required 0x0501 and on the linker line I've added -liphlpapi but the linker is still failing with the following message: gcc -liphlpapi build/obj/*.o -Wall -Wextra -o build/bin/asdf.exe src/asdf.cpp /tmp/ccdjLPVY.o:asdf.cpp:(.text+0x153): undefined reference to `_GetAdaptersAddresses@20' collect2: ld returned 1 exit status Some snippets from asdf.cpp : #if