msys

Win32 API stack walk with MinGW/MSYS?

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: i've to develop a stack trace walk to our win32 API plattform support to catch any exception with a behaviour of a JAVA stacktrace. Actually we got a full functional implementation for Linux plattforms. First i've tried to implement a stackwalk using the win32 CaptureStackBackTrace API mechanism. But this method is not integrated in the actually winbase header of mingw (using MSYS/MinGW 5.1.x) ... So i decided tried use the dbgheader mechanism follwoing the instructions of this link : http://sites.google.com/site/kenscode/prime

Getting gmp libraries to

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am having a problem getting a program to compile using: Latest Msys and MinGW installations Windows 7 Pro / Intel Core I5 / 8GB GMP 5.1.2 libraries - the header file is in C:\gmp\include - the .a and .la files are in C:\gmp\lib I originally posted this as an Eclipse question, but the silence has been deafening. I have since tried compiling using just gcc in msys, and I get the same problem. I compile using: g++ -I /c/gmp/include -O0 -g3 -Wall -c -fmessage-length=0 -o main.o ./main.cpp which appears to complete successfully. Then I link

cmake MSYS Makefiles generator missing

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have cmake 3.2.3 installed via pacman. I get an error when I try to use it from a msys64 shell: $ cmake -G "MSYS Makefiles" .. CMake Error: Could not create named generator MSYS Makefiles cmake --help does not list it as an available generator. I do see there is an MSYS.cmake in /usr/share/cmake-3.2.3/Modules/Platform. What am I missing? 回答1: Instead of installing the cmake package, I think you need to install mingw-w64-i686-cmake (or the 64-bit version mingw-w64-x86_64-cmake ). 回答2: If you compile native Windows binaries on Linux with

windows 7 安装 msys/mingw

非 Y 不嫁゛ 提交于 2019-12-02 18:55:17
一直听说msys/mingw比cygwin小,而且是非虚拟的环境,体验下。 https://sourceforge.net/projects/mingw/files/ 下载mingw-get-inst安装器, 安装过程可以选择安装MSYS,安装完后在MSYS文件夹下运行ip.sh,mount一些配置, 或者安装过程不安装msys,独立下载msys安装,目录自选。 吐槽下,msys反应有点慢,比如你想类似在linux中的按两次tab列出命令的话,会卡住一会儿。 mingw.org网站的文档有些过时,感觉这个项目维护的不多。 用过git for windows人也知道,它就是基于msys/mingw,所以其运行环境为msys,只是命令/工具比单独安装的msys/mingw少一些,具体没比对。 来源: oschina 链接: https://my.oschina.net/u/225435/blog/110012

Browsing Folders in MSYS

偶尔善良 提交于 2019-12-02 17:22:24
This will be the toughest question of the day. How do I navigate through my Windows folder structure within the MSYS shell? When I start the shell, all I see is a '~'. I type 'ls' and the folder is empty. I just want to know how to get to my c drive. GL770 cd /c/ to access C: cd /d/ for D: etc. use df to see all mount point so you can navigate to them. my df output shows below: Filesystem 1K-blocks Used Available Use% Mounted on C:\Users\Sam\AppData\Local\Temp 76694276 46239412 30454864 61% /tmp C:\MinGW\msys\1.0 76694276 46239412 30454864 61% /usr C:\MinGW\msys\1.0 76694276 46239412 30454864

Package management in git for windows?

不羁的心 提交于 2019-12-02 16:13:58
I'm reading wiki on github for git and it says that msys2 bundles pacman: https://github.com/git-for-windows/git/wiki/Package-management But when i'm invoking it: $ pacman bash: pacman: command not found Does anyone has an idea what is going on? To which git version this wiki refers? Is there a way to install additional packages to msys2 inside Git for windows? As mentioned in issue 397 : This is intended. We do not ship pacman with Git for Windows. If you are interested in a fully fledged package manager maintained environment you have to give the Git for Windows SDK a try. The bash that you

MSYS2: How to disable automatic translation of pathname to drive letter?

孤者浪人 提交于 2019-12-02 11:49:42
I'm facing an issue when testing a C program compiled with mingw in the MSYS2 shell: I wrote a command line parser that accepts options according to the windows convention (starting with / ). If I call my program like this to generate an output file: ./example.exe /o test What ends up in argv[1] is actually O:/ . It works fine when testing from a console window running CMD.EXE . This truly minimal program demonstrates the behavior: #include <stdio.h> int main(int argc, char **argv) { if (argc > 1) { puts(argv[1]); } return 0; } $ ./example.exe /o O:/ So I guess this is the MSYS2 shell trying

How do I get Windows cmd FOR to 'play-nice' with drag-n-drop

▼魔方 西西 提交于 2019-12-02 05:18:51
I had a very straight forward little batch script. The design outline is simple enough ... I want to touch every file ' dropped '. There is a Windows short-cut on the desktop that calls a batch (.cmd) script. Select some files with Windows Explorer Drag-n-Drop the selection onto either the short-cut icon or the command file directly. The script loops over the list of files dropped onto the icon. The script uses the FOR command to call the command one file at a time. Anyway there are several circumstances where the result is strange (to say the least). The worst example is an infinite loop that

Executing MSYS from cmd.exe with arguments

我只是一个虾纸丫 提交于 2019-12-01 08:50:49
I am trying to learn the wxWidgets library, using MinGW and msys to compile the code. So far so good, but I can not find a way to send a command to MSYS through CMD.exe. I use Sublime Text to edit files, and it has an option to run makefiles. I want my makefiles to be able to open an instance of MSYS and send the g++ command and arguments to it. Example: Right now my makefile is: test.exe : main.cpp g++ -s main.cpp -o test.exe `wx-config --cxxflags` `wx-config --libs` When mingw32-make goes to run the g++ command, it sends it to cmd.exe, which doesn't handle the back-ticks and wx-config jazz.

Eclipse CDT plugin problems

旧时模样 提交于 2019-12-01 04:27:57
im trying to run a c program on my windows 7 computer using eclipse and im running into a little snag. I currently have Eclipse downloaded on my computer with the CDT plugin and i have also downloaded Mingw and set it to my path. When i build my simple "Hello world" program it does create a debug file with the makefile and everything in it but the concle dialog states **** Build of configuration Debug for project C_Test **** make all `Cannot run program "make" (in directory "C:\Users\Chmoder\workspace\C_Test\Debug"): CreateProcess error=2, The system cannot find the file specified Error: