cygwin

Does the tee command always wait for EOF?

£可爱£侵袭症+ 提交于 2020-01-13 10:57:04
问题 I'd like to log the output of a command to stdout as well as to a log file. I've got Cygwin installed and I'm trying to use the tee command to accomplish this. devenv mysolution.sln /build myproject "Release|Win32" | tee build.log Trouble is that tee seems to insist on waiting for the end of file before outputting anything to either stdout or the log file. This takes away the point of it all, which is to have a log file for future reference, but also some stdout logging so I can easily see

micropython compiling with arm-none-eadi- in cygwin

六月ゝ 毕业季﹏ 提交于 2020-01-13 09:48:59
1. Download & Decompression 1.1 download micropython path: http://micropython.org/download/ Note: 使用公司的网络git没有安全认证,没有搞定网络,索性就直接下载完整包,本地解压 ~/micropython $ git clone https://github.com/micropython/micropython Cloning into 'micropython'... remote: Enumerating objects: 75723, done. remote: Total 75723 (delta 0), reused 0 (delta 0), pack-reused 75723 Receiving objects: 100% (75723/75723), 41.91 MiB | 18.00 KiB/s, done. Resolving deltas: 100% (54847/54847), done. Checking out files: 100% (3427/3427), done. 1.2 download gcc-arm-none-eadi compiler Path: https://developer.arm.com/tools-and-software

Some Issues About Cygwin[Linux in Windows] (socket,thread,other programming and shell issues)

随声附和 提交于 2020-01-13 07:47:20
问题 I have some question about cygwin : Can I use Cygwin develop socket based code? Does Cygwin have read() and write() functions that work with file descriptors? Can I use Pthread library in Cygwin? Does code that compiles in Cygwin also compile in Linux without any change or with little change? Will an executable file that built by Cygwin run in Linux ? Why does Cygwin not need the linker option -lpthread when I use pthread library? why in #include <iostream> don't I need to use using namespace

Cygwin shortcut for command history

馋奶兔 提交于 2020-01-12 17:31:46
问题 How can I search the command history in cygwin? I don't want to keep pressing the arrow keys to execute a command from console command history. 回答1: If you are using the default editing mode, do ctrl+R to search back through your history. If you have done set -o vi to use vi editing mode, then it is esc-/ 回答2: The history command is the way to go. I use h () { history | cut -f 2- | sort -u | grep -P --color=auto -e "$*" } so that I can type something like h git.*MyProgram , h ^tar -c , h svn

Cygwin shortcut for command history

妖精的绣舞 提交于 2020-01-12 17:29:09
问题 How can I search the command history in cygwin? I don't want to keep pressing the arrow keys to execute a command from console command history. 回答1: If you are using the default editing mode, do ctrl+R to search back through your history. If you have done set -o vi to use vi editing mode, then it is esc-/ 回答2: The history command is the way to go. I use h () { history | cut -f 2- | sort -u | grep -P --color=auto -e "$*" } so that I can type something like h git.*MyProgram , h ^tar -c , h svn

g++ curly quotes displayed incorrectly in console and “Problems” list

主宰稳场 提交于 2020-01-12 07:38:09
问题 Recently, I switched from Visual Studio to Eclipse CDT. I've set it up beautifully such that the G++ compiler from my Cygwin installation can locate and compile my code without ado. There is a minor grievance, however. Each time G++ reports a warning or error, the curly single quotes ‘ and ’ appear as ‘ respectively ’ . It seems like a character encoding problem; G++ or Cygwin is spitting out a character encoding that either CDT or Eclipse doesn't like. This is only relevant Google result

AttributeError: 'module' object has no attribute 'Firefox'

China☆狼群 提交于 2020-01-10 05:29:32
问题 I am trying to use selenium webdriver to spawn an instance of Firefox. In the past, I was able to do this after installing geckodriver and making sure that it was in my PATH. However, I switched over to using phantomjs for about a year and only recently decided to give Firefox a spin again. Unfortunately, now when I try to instantiate the webdriver.Firefox object, I get an AttributeError saying the object as no such attribute called "Firefox". I am not sure what changed to cause this error.

Override a C function defined in a static library

孤者浪人 提交于 2020-01-10 03:55:06
问题 I have a static library of C files, compiled with g++ on Cygwin. I wish to unit test one function that is defined in the library. That function calls another function defined in that library and I wish to override the dependency to replace it with my own version of that function. I can't modify what's in the static library, so this solution [ Override a function call in C ] doesn't apply. Usually, I can write a .cpp file and include the .c file containing the function I want to unit test,

Compiling minimal GLEW application under Cygwin

旧时模样 提交于 2020-01-10 02:05:25
问题 Let's consider the following program and try to compile it under Cygwin: #include <GL/glut.h> int main(int argc, char** argv) { glutInit(&argc, argv); glLoadIdentity(); } It compiles and runs just fine. -I/usr/include/opengl seems to be terribly important. g++ -I/usr/include/opengl -I../include/cygwin -L../lib/cygwin test.cpp -o test.exe -lglut32 -lglu32 -lglew32 -lopengl32 Now, #include <GL/glew.h> // from newest NVIDIA SDK #include <GL/glut.h> int main(int argc, char** argv) { glewInit();

Mimetex installation on Windows 7

僤鯓⒐⒋嵵緔 提交于 2020-01-07 08:02:20
问题 This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 8 days ago . I'm trying to install mimetex on Windows 7. To achieve this, I installed first cygwin on my machine, and then in the prompt window I typed: gcc -DAA -DWINDOWS mimetex.c gifsave.c -lm -o mimetex.exe in the right directory. In the prompt I read: but the exe was anyway created. When I tried to launch that exe, I saw this error: Could it be some incompatibility with my Windows version?