mingw

OpenGL + Mesa 3D + MinGW

为君一笑 提交于 2020-01-01 02:15:13
问题 I program C++ applications on (Ubuntu) Linux and compile them to 2 operating systems: natively to Linux by using "g++" (GNU C++ compiler) and cross-compile them to Windows by using "i386-mingw32-g++" (MinGW C++ cross-compiler). Now, I am trying to cross-compile "OpenGL" applications (from Linux to Windows) - for that I need some OpenGL library files. As an implementation of OpenGL, I use "Mesa 3D" open source library. Fortunately, Ubuntu offers "precompiled" mesa3d libraries ( libgl1-mesa-dev

Is make no longer included with MinGW and/or MSYS?

谁说胖子不能爱 提交于 2020-01-01 01:53:57
问题 I installed MinGW and MSYS on my Windows 7 computer. I added C:\Program Files (x86)\MinGW\bin to my path. Commands such as gcc and g++ work, but make does not. I looked in the directory, and there is no executable called make , even though I installed all components. There is a file called mingw32-make . There are also other files prefixed with mingw32- , such as c++, g++, gcc, gcc-4.6.1, and gfortran. However, there is a make in C:\Program Files (x86)\MinGW\msys\1.0\bin . If I open the MinGW

permission denied when sed in place edit in mingw

巧了我就是萌 提交于 2020-01-01 01:29:09
问题 I'm using mingw. $ sed -i "s/a/b/" test.txt sed: preserving permissions for `./sed003480': Permission denied I can touch/rm files in current dir. 回答1: It's caused by Windows security settings. Open the folder's Properties settings from the context menu. In the Security tab, click Edit , press Add... in the pop-up window and add your user to the list, check Full Control in the Allow column. Press OK twice to apply the changes. 回答2: For me, folder was read only. unchecking readonly option fix

'easy_install -U cython' fails complaining about vcvarsall.bat and -mno-cygwin

假装没事ソ 提交于 2019-12-31 22:36:12
问题 Under Windows, it seems that easy_install with a C dependency isn't very easy. Attempt 1 - vcvarsall.bat errors I am installing cython under Windows7, with MinGw ; I modified Windows7's PATH to include C:\MinGw\bin . At this point, I tried to easy_install -U cython , and got... C:\Users\mike_pennington\Desktop\TestDrive>easy_install -U cython Searching for cython Reading http://pypi.python.org/simple/cython/ Reading http://www.cython.org Reading http://cython.org Best match: Cython 0.15.1

How Do I Run ./configure with MinGW?

。_饼干妹妹 提交于 2019-12-31 12:53:16
问题 I am looking at this webpage http://mathieu.carbou.free.fr/wiki/index.php?title=Glib_for_Win32 And it tells me I need to run the following commands. ./configure make make install How do I actually do this and where can I find these files. I have MinGW and Mysys installed in my C drive. 回答1: On Windows there is 2 ways to achieve this if you have MinGW installed you also have to install msys for MinGW some MinGW installations already come pre-installed with msys to check go to your MinGW folder

How to obtain older versions of packages using MSYS2?

强颜欢笑 提交于 2019-12-31 10:47:48
问题 I decided to try CLion for Windows, which recommends either MinGW or Cygwin for compilation. I installed the MSYS2 package manager into the default folder, C:\msys64 , updated it by running update-core and pacman -Su . I then downloaded the MinGW64 package using pacman -S mingw-w64-x86_64-gcc , which has been placed into C:\msys64\mingw64 . The problem is, pacman -S mingw-w64-x86_64-gcc currently downloads the version 5.0, which is not yet supported by CLion. Does MSYS2 support installing

Crash reporting for MinGW applications

旧城冷巷雨未停 提交于 2019-12-31 08:57:11
问题 I have a c++ application compiled with MinGW for which I've been receiving crash complaints from customers. So, besides heavily logging in the parts that might be crashing (before releasing a new version), I've been looking for a crash reporter that will help me find out the stack trace and any other useful debugging information whenever an error arises. Does any such tool exist that is compatible with MinGW applications? (It seems that there is a close relation between then compiler and the

Setting up MinGW with Eclipse Galileo on Windows

て烟熏妆下的殇ゞ 提交于 2019-12-31 05:27:10
问题 Couldn't get it working on Windows 7 64 bits. 回答1: Okay, here's how I got it working: 1) Install the makefile, c and c++ compilers during the mingw installation. Must be installed on C:\mingw 2) Go to C:\mingw\bin, copy the "mingw-make.exe" file and rename the copy to make.exe 3) Add "C:\mingw\bin" to the the PATH environment variable 4) Download the gdb.exe debugger and put it in the C:\mingw\bin folder 5) Install the CDT plugin to Eclipse, if it isn't already installed 6) In Eclipse, go to

What's the proper way to link against an executable on Windows?

自闭症网瘾萝莉.ら 提交于 2019-12-31 03:20:08
问题 I need to use some symbols from the main executable in a plugin. Linking against the executable causes the following linker errors: i686-w64-mingw32-g++ example.cpp -shared -I.. -std=c++11 -o test.dll ../../test.exe -static-libgcc -static-libstdc++ -fvisibility=hidden [..]/test.exe:cygming-crtbegin.c:(.text+0x500): multiple definition of `__gcc_register_frame' /usr/lib/gcc/i686-w64-mingw32/5.1.0/crtbegin.o:cygming-crtbegin.c:(.text+0x0): first defined here [..]/test.exe:cygming-crtbegin.c:(

When using ld to link, undefined reference to '__main'

房东的猫 提交于 2019-12-31 01:53:05
问题 /* test.c */ void func1() { } int main() { func1(); } Hello, I am making kernel code using C. But I tested above code to know how to build C kernel code. Below command is what I gave to prompt. I am using MinGW on Windows 8.1. gcc -c -m32 test.c ld -o test -Ttext 0x00 -e _main test.o But this error was occurred from ld. test.o:test.c:(.text+0x7): undefined reference to `__main' So, I tried different way. add -nostdlib and --freestanding option to gcc. But the result was same. Is __main