Click here to Skip to main content
15,885,914 members
Everything / MinGW

MinGW

MinGW

Great Reads

by Derell Licht
Find logon time on Windows 10
by Marius Bancila
An introduction to cpplinq, a open-source template library that provides LINQ-like operators for querying collections (arrays and STL containers) in C++11.
by Khaldoon Ghanem
This article describes how to visualize complex-valued functions of a single complex variable using the domain coloring method on GPU.
by Oliver Kohl D.Sc.
This is a small "how to" that shows you how to get wxWidgets running under Windows

Latest Articles

by Derell Licht
Find logon time on Windows 10
by Oliver Kohl D.Sc.
This is a small "how to" that shows you how to get wxWidgets running under Windows
by Khaldoon Ghanem
This article describes how to visualize complex-valued functions of a single complex variable using the domain coloring method on GPU.
by Marius Bancila
An introduction to cpplinq, a open-source template library that provides LINQ-like operators for querying collections (arrays and STL containers) in C++11.

All Articles

Sort by Score

MinGW 

8 Jun 2021 by Derell Licht
Find logon time on Windows 10
26 Apr 2014 by User 59241
All of what SA has said is correct. That's why we have this:http://msdn.microsoft.com/en-us/library/ms682586%28VS.85%29.aspx[^]I think the best solution is put the dll where it can be found. However to achieve what you wish look at this. You can do it via...
24 Jan 2014 by Sergey Alexandrovich Kryukov
What's the problem? The length of base64-encoded string? There is no strict one-to-one correspondence between original and encoded data, as the base64 format is somewhat free; it can be formatted in arbitrary manner, which may create some extra length. The round trip of original, encoded and...
31 Dec 2019 by k5054
Take a look here: CMake Tutorial — CMake 3.16.2 Documentation[^]. That should guide you in creating your CMakeList.txt file. Are you sure you're using cmake, though? Generating a Makefile through cmake should produce a Makefile that is many lines long. In my case, even the simplest cmake...
3 Jul 2012 by enhzflep
Nope. No can do.MS compiler produces .lib files, GCC produces .a files.You can't link .a files to projects with Visual Studio. Nor an you link .lib files to projects with GCC.What you trying to do/achieve?
19 Dec 2012 by CPallini
It looks using a Linux virtual machine would be the easy path, see the following discussion: http://qt-project.org/forums/viewthread/16474[^].
14 Jun 2012 by Sandeep Mewara
Here, this should help: MSVC and MinGW DLLs[^]
19 Dec 2012 by X Guy
Dear developers,i have a C++ program which is written in QT, now the development stuff is done and it is compiled to be used inside windows but now i want to compile it for linux too.but the thing is i don't know how to do it :-(Note: I'm using QT 4.7.4 32 bit and mingw on windows 7.
20 Dec 2012 by Albert Holguin
Well... set up your compiler to and IDE onto your Linux machine (if you use an IDE). Now, you'll have to rebuild your Qt libraries for Linux, that should be in their documentation (although I have noticed their documentation kind of sucks). Once you have built the libraries, configure your IDE...
23 Jul 2016 by George Hayes
The problem is in pnglibconf.hYou will find a number of lines toward the bottom of the file the variable has been tabbed down to the next line.Simply bring those variables back up to the same line and save again.
18 Jun 2011 by enhzflep
I recall reading of other users experiencing problems when porting 32 bit programs that rely on the registry to 64 bit machines, though have yet to bother to play with registry access on my win7 pc.You should be stepping in Debug mode to determine which line fails. At the very, very least...
5 Sep 2011 by druciferre
This is perplexing me... I am writing a DLL to provide FTP upload and download functionality. I am using the Windows INET API's to achieve this, and when I make a call to InternetConnect() it fails with error code 6 (Invalid Handle Value). I was trying to figure out why it kept failing, so I...
11 Feb 2012 by krumia
Is there anyway I can use MinGW compiler system to create shell extensions? A tutorial, guide... anything? I am using Bloodshed Dev-C++ for development. (Because I have a very slow internet connection and cannot afford to download those bulky microsoft SDKs)Adding to that: What I want to do...
4 May 2012 by rodudeasdf
I am beginner using graphics.h and i don't know how to do those thinks in MinGW :1.How to make an animation to move a square in the right side ?2.How to spin a circle ?Thanks.
14 Jun 2012 by Alexandre Bencz
Hi, how I can build a .lib file using MinGW compiler ?Thanks.
1 Dec 2012 by lmsmi1
Okay, this is my first questions here. I have a simple code for a program I'm creating in C++ WinAPI (no MFC or anything, just plain windows.h), and don't exactly get a few things:1. Text Output or "Labels" - Which way is best? I've seen four different way of text output or so called...
20 Dec 2012 by IDENguyen
you can use linux open suse. It so good for you to compiler c, or c ++
30 Jun 2013 by YuriMaks
Hello :)Os - Win7 x64Qt - 5.0.2 for Windows 32-bit (MinGW 4.7) from http://qt-project.org/downloads[^]Start QT Creator, make a project (qt gui application), add breakpoint, press "start debug"... And watch disassembled code 0_0 I want normal debug mode, please help.
1 Aug 2013 by Matthew Faithfull
I'm using CodeBlocks ( 12.11 rev 8629, SDK 1.13.14 ) to build a 32-bit Windows executable, ArchQORDemo.exeThe command line is as follows:-mingw32-g++.exe -std=c++11 -w -nostdlib -nostartfiles -nostdinc -nodefaultlibs -fno-exceptions -std=c++11 -g -D_QSYS_OS=_QSYS_MSW -DWIN32=1...
1 Aug 2013 by Matthew Faithfull
Panic over, it was an entry point issue. MinGW ld is rubbish at reporting things link missing entry points even with --verbose on.Solved by adding -Wl, -e_mainCRTStartup to the command line and including the supc++ replacement twice on the link command, first and then again after the bootstrap...
25 Jan 2014 by ansh_kumar
I want to base64 encode and decode a file and show it on the output screen.My input file is as follows:In other wordsMAC address: “XY-XX-XX-XX-XX-XX” “X” can be anything hexadecimal. The hexadecimal “Y”, written in binary format, is Y: “kmnp”, where “p” is the least significant...
25 Jan 2014 by ansh_kumar
After a very long observation I found that visual c++ behaves in a very strange why when it comes to file pointers.See what i get from executing the following code:#include #include using std::cout;using std::endl;int main(){ FILE* file; size_t...
26 Apr 2014 by manoranjan
There is no common way to search for libraries...In Windows you can use the PATH environment variable.In Linux or Unix you can use LD_LIBRARY_PATH environment variable to specify the library's path. If the path doesn't change (this is true most of the time), you can specify the...
9 Dec 2014 by Henri Aghaei
I have a folder includes many c++, c, h, object files as well as a MakeFile. So, I used Cygwin as well as MinGW to create an executable file namely calibrator.exe.So, I address the target folder and type in "make all". On both MinGW and CygWin got the following errors.CygWin:g++ -O3...
10 Oct 2015 by victorvg
When I try to build the following code using MinGW in Eclipse, I get the error "Function 'CreateThreadpool' could not be resolved"The code: #define WINVER 0x0603#define _WIN32_WINNT 0x603#include int main(void){ CreateThreadpool(nullptr); ...
27 Mar 2016 by stackprogramer
my question is when i build release mode my simple app,how i can create exe file?i tested this solution: Let's say you've installed QT under c:\qtsdk Open your project, and compile it in release mode. Go to this directory: C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin -- it contains...
23 Jul 2016 by DBPatric
I want to build GTKmm 3.20 for use with Eclipse as I have tried all other avenues to get GTK working and have given up on all of them, and besides, I figure if I can build it in its current version, I'll never have to depend on someone to build it for me. I want to be able to do 32-bit and...
1 Jul 2016 by Richard MacCutchan
Looking at those error messages it would appear that you have some macro definitions missing. The message:pngstruct.h:266:21: error: operator '>=' has no left operand #if PNG_ZLIB_VERNUM >= 0x1240would seem to imply that PNG_ZLIB_VERNUM has not been defined anywhere.
17 Sep 2016 by stackprogramer
i shared solution here best way is cd $dir_projectqmake project.promingw32-makefinally execute file will be created.
20 Feb 2017 by Graeme_Grant
I'm not a C++ dev, but found a StackOverflow Q&A[^] that should point you in the right direction.
15 Aug 2019 by OriginalGriff
Quote: Can somebody please give me a working code? Very basic program in C to read an URL into a String object or character array. We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either...
31 Dec 2019 by TankRockett
Recently i've just built an SFML/C++ project on Visual Studio Code using CMake and MinGW.I've successfully compiled and run a test file in my project folder. Here's my Makefile: StarFire: g++ main.cpp -o main.exe -DSFML_STATIC -I F:\SFMLPrj\StarFirestc\Prefixes\include -L...
22 Apr 2020 by Member 14810494
I know that this response is over 3 years removed form the original posting, but I ran across this posting while researching and wanted to offer a response. I've experienced this type of undefined reference before. It can happen when one is...
7 Sep 2020 by VD-Flash
Here is the solution to your problem. I was experiencing the same problem as you when I first used FreeGLUT. First confirm that you have a OpenGL32 and FreeGLUT library. If you are using MinGW then these should be located in the lib directory...
9 Oct 2020 by User 14926697
I want to connect two OS with each other and I'm using this code: #include #include #include #include #include #include #include #include #include...
15 Sep 2021 by Richard MacCutchan
Look what I found when I typed 'gcc' into Google: GCC, the GNU Compiler Collection- GNU Project[^].
28 Oct 2021 by User 15226833
Hi everyone. My question is same title. Yes problem when compile. Please help me. This is a code of my program (in CPP): // Written by UKI COMPUTERS (ukicomputers.github.io - github.com/ukicomputers) // Based on (C) UKI COMPUTERS Self-Protecting...
3 Nov 2012 by Marius Bancila
An introduction to cpplinq, a open-source template library that provides LINQ-like operators for querying collections (arrays and STL containers) in C++11.
27 Jan 2013 by Khaldoon Ghanem
This article describes how to visualize complex-valued functions of a single complex variable using the domain coloring method on GPU.
26 Apr 2014 by Sergey Alexandrovich Kryukov
There is no such concept as "runtime directory". There is no such concept as "linking to a DLL in an environment variable". There is no one predefined universal way of saying where to look for a DLL (I'm talking about native DLLs; .NET assemblies can be put in the well-defined Assembly...
19 Aug 2013 by Oliver Kohl D.Sc.
This is a small "how to" that shows you how to get wxWidgets running under Windows
15 Jun 2011 by HartzFear
Hello,I'm writing a function which load a keyboardlayout using the registry. The whole programm works fine under a 32-Bit windows but it crash on a 64-Bit windows.// headerfile#define TYPEDEF_VK_TO_WCHARS(n) typedef struct _VK_TO_WCHARS##n { \ BYTE VirtualKey; \ BYTE ...
10 Feb 2012 by Chris Meech
For starters, try here[^].It's possible that examples from the articles will compile in your environment, but there's no guarantee. If there are libraries missing, then you may still have to download the SDKs from Microsoft.
3 Jul 2012 by iPick12
Hi, I was wondering whether it is possible to create lib files with gcc and use them also with gcc. As lib files I mean the files produced by Microsoft CL that have the extension lib and look like "advapi32.lib". My platform is Windows NT. I already know that I can produce and use .a files from...
30 Jun 2013 by YuriMaks
So...1. open project file (.pro), resave it2. go to "project tab", reselect debug configuration modesomehow it works now
9 Oct 2020 by OriginalGriff
Probably it's your compiler / linker command line. Have a look at this, and compare what you use with the solution there: c++ - MinGW linker error: winsock - Stack Overflow[^]
18 Oct 2021 by OriginalGriff
Read the error message: Quote: master/src/rp2_common/pico_standard_link/crt0.S.obj: in function `__get_current_exception': (.reset+0x9c): undefined reference to `main' You application does not contain an entry point, and cannot be built into an...
4 May 2012 by CPallini
AFAIK you cannot use BGI with MinGW. BGI is the graphics library provided by Turbo C/C++ (are you using WinBGIm[^]?).[Update]Move the square to the right:Erase the square at current position {x,y}.Update position {x,y}->{x+dx, y}.Delay for some time (e.g. calling Sleep()...
22 Apr 2020 by Member 13013288
I'm a student working with OpenGL in C++. I'm trying to get freeGLUT to work with MinGW. I'm asking because I've already tried a ton of sites, multiple times and there is no clear solution, at least to my knowledge. I've had this problem for months.Although using Visual Studio would be the...
9 Oct 2012 by RizviHasan
A comparison
26 Jul 2013 by Sicppy
I am looking into creating a self extracting archive, I don't have any code as of right now, but my idea is simple.Extract internal zip file to temp directoryRun setup scriptDelete temp directorySimple enough, I would like a simple c++(mingw) example of an implementation of the zLib...
26 Apr 2014 by Sicppy
I would like to know how to link to a DLL stored in a place other than the runtime directory. The location of the directory is as follows %LWE_HOME%/lib/engine.dll How do I tell the program to look for it there instead of in the runtime directory?I am looking for a cross-platform solution....
15 Sep 2021 by Noneyabees
Currently my version of gcc is 8.1.0, but i want the latest and greatest version of gcc. Is there anyway to do this? Online its pretty hard to even figure it out. What I have tried: I have tried using google for the answer.
28 Oct 2021 by User 15226833
In this line: #include "keypad/pico_keypad4x4.h" Replace with this: #include "keypad/pico_keypad4x4.c" Beacuse, this library HAS NOT GOT a main function (.h file C++ in this thing calculate as program).