mingw32

Executing a program from PHP hangs APACHE

孤街醉人 提交于 2019-12-02 10:38:16
问题 Hello and thank you in advance for your interest. During the past two weeks I've been struggling with something that is driving me nuts. I have APACHE (2.2.22) and PHP (5.4.3) installed on my Windows box and I'm trying to call a program from a PHP script which calls another program at the same time. Both programs are written in C/C++ and compiled with MINGW32. Regarding to Windows version, I've tested Windows 2003 Server and Windows 7 Professional and both give me the same problems. Let me

gmpxx.h: no such file or directory

佐手、 提交于 2019-12-02 00:30:31
问题 I just installed a brand new copy of mingw (32 bit) downloading it from the official project page from Sourceforge. I installed everything in the package, all compilers and so on. Then I downloaded from here gmp for MinGW. I extracted gmp-5.0.1-1-mingw32-src.tar.lzma somewhere into my mingw folder, then ran ./pkgbuild from there. It went on running for some minutes, then printed out something like COMPLETED EVERYTHING OK, EVERYTHING PASS . Then I wrote down this simple example, to check if it

Mingw32 std::isnan with -ffast-math

て烟熏妆下的殇ゞ 提交于 2019-12-01 11:26:34
I am compiling the following code with the -ffast-math option: #include <limits> #include <cmath> #include <iostream> int main() { std::cout << std::isnan(std::numeric_limits<double>::quiet_NaN() ) << std::endl; } I am getting 0 as output. How can my code tell whether a floating point number is NaN when it is compiled with -ffast-math ? Note: On linux, std::isnan works even with -ffast-math. Since -ffast-math instructs GCC not to handle NaN s, it is expected that isnan() has an undefined behaviour. Returning 0 is therefore valid. You can use the following fast replacement for isnan() : #if

Add application manifest to a win32 application in eclipse

懵懂的女人 提交于 2019-12-01 08:49:35
问题 How do I add an application manifest to a Win32 application being developed in Eclipse ? I want to add a manifest in order to use version 6 of Comctl32.dll which, according to this article is necessary to create form controls with a Windows XP visual style. I'm using MingW32 toolchain with eclipse. 回答1: To answer my own question: Add CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "YourApp.exe.manifest" to the .rc file before you compile it with MinGW resource compiler, windres 来源: https:/

On windows _fseeki64 does not seek to SEEK_END correctly for large files

强颜欢笑 提交于 2019-12-01 01:05:39
I have reduced the problem to the following basic function which should simply print the number of bytes in the file. When I execute it for a file of 83886080 bytes (80 MB) it prints the correct number. However for a file of 4815060992 bytes (4.48 GB) it prints 520093696 which is way to low. It seems to have something to do with the SEEK_END option because if I set the pointer to 4815060992 bytes manually (e.g. _fseeki64(fp, (__int64)4815060992, SEEK_SET) _ftelli64 does return the correct position. So a workaround would be to get the proper file size without using SEEK_END , how is this done?

mingw32-g++.exe: error: CreateProcess: No such file or directory

余生长醉 提交于 2019-11-30 23:47:36
I just installed Code::Blocks 12.11 and create a console application by the Wizard the hello world code was in there by default. I tried to compile it but I come across this build error: -------------- Build: Release in example (compiler: GNU GCC Compiler)--------------- mingw32-g++.exe -Wall -fexceptions -O2 -c "E:\Workspace\C++\Code Blocks\example\main.cpp" -o obj\Release\main.o mingw32-g++.exe: error: CreateProcess: No such file or directory Process terminated with status 1 (0 minutes, 0 seconds) 1 errors, 0 warnings (0 minutes, 0 seconds) What should I do to solve it? 来源: https:/

How would I build Box2D to work in Code::Blocks/Mingw32(Windows)

放肆的年华 提交于 2019-11-30 20:56:36
hey the title pretty much says it all. i have been trying different methods from internet sources, but whenever i try something goes wrong..this is where i got Box2D in cMake , i get a bunch of errors when building it(i was going through the steps in the readme.txt, but onfortunately, theyre for Visual C++...) so im wondering hot to set this up as i guess a library (.lib or .a) and use it in my project(my friend passed me his library and when i loaded it in and tried #include ing the box2D headers, they didnt read at all(i got a list of undefined errors) also his box2d was i believe made for

how to generate pdb files while building library using mingw?

谁说胖子不能爱 提交于 2019-11-30 19:28:17
I am cross compiling from linux to windows using the mingw32 tools. I need to generate pdb files for debugging on windows. Is there a way to do this? this project gives you the ability to generate the pdb, it works in most cases for debuging : https://github.com/rainers/cv2pdb more details can help in this post about post mortem debugging http://blog.morlad.at/blah/mingw_postmortem GCC/MinGW produces debug info in its own format used by GNU GDB Debugger, there is no support for Microsoft PDB format. So you can: build application on Windows with MSVC use Windows version of GNU GDB try to

Linking with -static-libstdc++ flag on MinGW 4.7.1 [closed]

主宰稳场 提交于 2019-11-30 18:00:22
I try to compile (Allegro 5) on MinGW 4.7.1 (using Code::Blocks 12.11 on Win 7) with compiler flags (write them in Project :: Linker settings :: Other linker settings): -static-libgcc -static-libstdc++ Result: unrecognized command line option '-static-libstdc++' How to solve it? What does g++ --version say? I don't know the exact version when it was introduced, but -static-libstdc++ is a fairly recent addition. Before, you had to do something like -static -lstdc++ -dynamic . (If the compiler version is 4.7.1, this should not be a problem, but I don't know how MinGW versions map to the actual

mingw32-g++.exe: error: CreateProcess: No such file or directory

别来无恙 提交于 2019-11-30 17:47:52
问题 I just installed Code::Blocks 12.11 and create a console application by the Wizard the hello world code was in there by default. I tried to compile it but I come across this build error: -------------- Build: Release in example (compiler: GNU GCC Compiler)--------------- mingw32-g++.exe -Wall -fexceptions -O2 -c "E:\Workspace\C++\Code Blocks\example\main.cpp" -o obj\Release\main.o mingw32-g++.exe: error: CreateProcess: No such file or directory Process terminated with status 1 (0 minutes, 0