mingw32

<stdlib.h> not found in MinGW when MinGw include directory is added to search path

江枫思渺然 提交于 2019-12-23 06:15:27
问题 I'm getting the error c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:75:25: fatal error: stdlib.h: No such file or directory #include_next <stdlib.h> when adding C:\MinGW\include to the compiler include search path: echo "#include <cstdlib>" | g++ -x c++ - -isystem C:/MinGW/include -o /dev/nul But CMake does this because some libraries (libcurl e.g.) are installed into C:\MinGW hence the curl include dir is C:\MinGW\include Am I doing something wrong or is this a bug in MinGW? I'm using

Report shows “no time accumulated” for gprof using Eclipse CDT

霸气de小男生 提交于 2019-12-23 05:34:09
问题 After compiling with flags: -O0 -p -pg -Wall -c on GCC and -p -pg on the MinGW linker, the eclipse plugin gprof for shows no results. After that I did a cmd call using gprof my.exe gmon.out > prof.txt , which resulted in a report witth only the number of calls to functions. Flat profile: Each sample counts as 0.01 seconds. no time accumulated % cumulative self self total time seconds seconds calls Ts/call Ts/call name 0.00 0.00 0.00 16000 0.00 0.00 vector_norm 0.00 0.00 0.00 16 0.00 0.00 rbf

Linphone configuration results in multiple undefined Autotools macros

孤街醉人 提交于 2019-12-22 11:37:07
问题 I have downloaded the Linphone opensource and build using MINGW. I have followed the steps given by the README.mingw. When I use the command "./autogen.sh", I got the following error. + aclocal -I m4 -I /usr/local/share/aclocal -I /share/aclocal aclocal:m4/po.m4:36: warning: macro `AM_PATH_PROG_WITH_TEST' not found in librar y aclocal:m4/po.m4:61: warning: macro `AM_PATH_PROG_WITH_TEST' not found in librar y aclocal:m4/po.m4:78: warning: macro `AM_PATH_PROG_WITH_TEST' not found in librar y

Cross compiling Direct3D on Linux with mingw

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 08:55:09
问题 How to configure mingw32 to cross-compile Direct3D Apps for Windows? Is there any possibility? I have actually succeeded compiling code from this tutorial: http://www.directxtutorial.com/Tutorial9/B-Direct3DBasics/dx9B4.aspx - using Code::Blocks on Kubuntu with i586-mingw32msvc-g++. I needed to add #define UNICODE and remove the #pragma ... parts to do this, and I used header files from /usr/i586-mingw32msvc/include and libs also from mingw package. However I cannot compile code from this

Cannot run my exe file on another computer. “Application requested the runtime to terminate it in an unusual way” error

此生再无相见时 提交于 2019-12-22 03:59:14
问题 My exe runs completely fine on the computer I programmed it on. It debugs fine, releases fine, and I can move the exe file from the 'release' folder into a new file, locate the needed .dll files from C:\pathtoqt\ming47_32\bin and it still runs fine. However, when I attempt to run this program on another computer with the .dll files included, I cannot do it and I get the "Application has requested the runtime to terminate it in an unusual way". I have tested this on 2 windows 7 computers and 1

How to specify dll onload function for mingw32?

醉酒当歌 提交于 2019-12-21 20:24:55
问题 I can compile DLLs properly using mingw and do the exports/imports stuff. What I am looking for is defining the dll onload function properly as you would in MS VC products. Google didn't turn up anything. Anyone have any ideas or a link to a tutorial? 回答1: Okay, so after some fiddling...it's working. For anyone else that is having issues here it is. My issues weren't related to compiling in instead of loading dynamically. It was a mash-up of a couple of tutorial/question/how-tos that got me

Error while building OpenCV :: MonitorFromRect was not declared in this scope

橙三吉。 提交于 2019-12-21 04:49:17
问题 I was trying to build OpenCV version 2.4.8 to use it with CodeBlocks and MinGw . I followed the instructions from here. But I got the following error. I have no clue how to solve it. I didn't find anything useful by searching in the net. This is also not solving. I don't want to mess with the openCV code, I intend to use OpenCV in my project and this is first time I am using it. [ 26%] Built target pch_Generate_opencv_highgui [ 26%] Building CXX object modules/highgui/CMakeFiles/opencv

Memory leak checking on Windows with QT and MinGW32

眉间皱痕 提交于 2019-12-18 13:17:01
问题 Lately I have been developing in C++ with QT Creator. All is well and I'm nearly at the point of packaging and distributing my application. But obviously before any release you better make sure you have everything right. So I'm at the testing stage, and something tells me that I have some slight memory issues. Nothing serious, but I like to obsess over these ;-). So I decided to try some memory leak detection libraries. For starters I looked at this question. I disregarded Purify and Insure++

MinGW-w32 vs. MinGW

前提是你 提交于 2019-12-17 22:57:26
问题 What's the difference between the MinGW project and the 32-bit portion of the MinGW-w64 project? Does the 32-bit portion of MinGW-w64 have any relation to x64 at all? It seems like their compilers do the exact same things... 回答1: One looks like it "cross compiles", from 64 bit to 32 bit, whereas the other looks native. That was just a quick look though, so I could be a long long way off the mark here...... EDIT: This is only somewhat true. A better explanation is provided here 回答2: The MinGW

ld.exe: cannot open output file … : Permission denied

为君一笑 提交于 2019-12-17 15:28:07
问题 I recently installed CodeBlocks with mingw32 on Windows 7 Ultimate 32bit in order to dust off my c skills, but this problem has me somewhat stumped. I decided to fire off a short Fibonacci generator to make sure my setup was working, but I ran into a hurdle. The program compiles, links and whatnot like a charm and I get a corresponding executable which runs as expected. The problems occur if I try to compile again, then I get the following: c:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../