mingw

MinGW32: Linking against ImageMagick with -static flag

蓝咒 提交于 2020-01-05 04:35:07
问题 I am currently trying to build a Windows-version of emacs that supports ImageMagick. For that purpose I have already compiled ImageMagick with MinGW32/MSys in order to get compatible library files. Basically linking also works, though I have to add explicitly -llibMagickCore-6.Q16 and -llibMagickWand-6.Q16 to the linking command through configure.bat 's --lib option. However, the binary distribution of emacs for windows is supposed to load, even when the dependencies are absent. This

Open CV crashes under WIN7 when opening NamedWindow

末鹿安然 提交于 2020-01-05 04:30:16
问题 I am having trouble with OpenCV2.0 on Win7 32bit, I have recompiled it using MinGW 4.5.0 and everything went OK until I tried to run examples. Anytime it opens NamedWindow it crashs down. On the other side on on different machine Win7 64 bit everything runs without problem. Any idea? Thx, Jan 回答1: It is a known problem due to some sort of "stack misalignment" with SSE under certain circumstances. It has been posted before namedWindow() causes crash in opencv 2.3.1? (Eclipse+MinGW on XP, C++)

How do I compile a C/C++ program through windows command prompt?

核能气质少年 提交于 2020-01-05 02:55:09
问题 Im new to the C/C++ programming language an so far have used the Code::blocks program for writing and compiling programs. However I need to know how to compile a program via windows command prompt as I need to access the assembly code created. My compilers are mingw32-gcc.exe, mingw32-g++.exe 回答1: Please read Compile Programs with MinGW -- A Guide for New Users. To make gcc produce assembler code, use -S option: -S Stop after the stage of compilation proper; do not assemble. The output is in

GUI design issues using C++ , Qt on Windows (Vista)

和自甴很熟 提交于 2020-01-04 13:50:13
问题 This concerns C++ (MinGW), Qt, Windows Vista: all this while i's developing non-GUI applications in C++. Recently i decided to try a GUI one in Qt and am having some design issues. Here's the problem: step 1: Load and display a background gif Animation using QMovie... step 2: process huge dump files (over 2GB's)....so when i reached step 2 expectedly my GUI froze.. i was using while(getline(inputFileStream,stringLine)) {...} so i placed QCoreApplication::processEvents(); inside the loop. The

Build FFTW lib with Visual Studio 2015 [added: steps for VS 2019]

浪子不回头ぞ 提交于 2020-01-04 06:29:11
问题 I'm trying to use Visual Studio 2015 to compile a project that uses FFTW. Unfortunately, the precompiled binaries from the FFTW website aren't compatible with VS 2015, due to this problem: unresolved external symbol __imp__fprintf and __imp____iob_func, SDL2. You get a link error when you try to compile. I'm looking for any advice on how I can compile a compatible version. The obvious answer would be to recompile FFTW with VS 2015, but I can't find any instructions on how to compile it with

fwprintf omits wide chars

Deadly 提交于 2020-01-04 05:49:10
问题 I'm trying to create wide chars file using MinGW C on Windows, however wide chars seem to be omitted. My code: const wchar_t* str = L"příšerně žluťoučký kůň úpěl ďábelské ódy"; FILE* fd = fopen("file.txt","w"); // FILE* fd = _wfopen(L"demo.txgs",L"w"); // attempt to open wide file doesn't help fwide(fd,1); // attempt to force wide mode, doesn't help fwprintf(fd,L"%ls",str); // fputws(p,fd); // stops output after writing "p" (1B file size) fclose(fd); File contents píern luouký k úpl ábelské

final link failed: Invalid argument when including windows.h

為{幸葍}努か 提交于 2020-01-04 04:06:46
问题 I have set up MinGW and Eclipse with CDT for C++ developing on Windows. Everything works great until I #include <windows.h> . As soon as I do that, I get the linker error message c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: final link failed: Invalid argument whereby the path at the beginning resolves to C:/MinGW/mingw32/bin/ld.exe . I have no idea what the error message tries to tell me... so please help me to decrypt it. 回答1: Since I actually don't agree to Lol4t0's

Gtkmm compiling error

Deadly 提交于 2020-01-04 04:00:11
问题 OS: Windows 7 Compiler: MinGW IDE: Code::Blocks I just installed Gtkmm on my computer in the folder C:/gtkmm/ and set up an example program. When I compiled it, it gave the error "gtkmm.h: No such file or directory" I tried setting the PATH variable to C:/gtkmm/include and C:/gtkmm/gtkmm-2.4, but neither worked. Then I tried using #include "C:/gtkmm/include/gtkmm-2.4/gtkmm.h" and that just gave a ton of errors saying that it doesn't know where a few dozen files are. I've also heard that you

Where to obtain termios.h

a 夏天 提交于 2020-01-03 09:55:33
问题 In my particular situation I am using MinGW/MSys . It doesn't contain termios.h . Turns out it isn't a library that can be downloaded and installed (google didn't found any). Termcap also doesn't include termios.h . Where from to get this file? 回答1: MinGW doesnt fully support POSIX and therefore termios.h is missing. On the other side, Cygwin is capable of POSIX and termios.h. 来源: https://stackoverflow.com/questions/20772965/where-to-obtain-termios-h

Where to obtain termios.h

99封情书 提交于 2020-01-03 09:55:12
问题 In my particular situation I am using MinGW/MSys . It doesn't contain termios.h . Turns out it isn't a library that can be downloaded and installed (google didn't found any). Termcap also doesn't include termios.h . Where from to get this file? 回答1: MinGW doesnt fully support POSIX and therefore termios.h is missing. On the other side, Cygwin is capable of POSIX and termios.h. 来源: https://stackoverflow.com/questions/20772965/where-to-obtain-termios-h