MinGW .exe requires a few gcc dll’s regardless of the code?

Your commands are wrong ! Go to the directory where your main.cpp file is, and try the following. then you’ll no longer need to copy the DLLs (for your Hello World program). Other notes: The MinGW installation instructions recommends setting to the PATH environment variable. Normally the linker options should work (try all 3 of them at … Read more

cc1.exe System Error – libwinpthread-1.dll missing – But it isn’t

I recently downloaded MinGW-w64 from Sourceforge onto my external hard drive, where all the files reside in: E:\mingw-w64\x86_64-4.9.2-posix-seh-rt_v3-rev1\mingw64\bin When I try compiling my first “Hello World” program using gcc on Windows 8.1, I get a cc1.exe System Error, that tells me The program can’t start because libwinpthread-1.dll is missing. Try reinstalling the program to fix … Read more

Serial Port (RS -232) Connection in C++

Please take a look here: RS-232 for Linux and Windows 1) Windows Serial Port Programming 2) Using the Serial Ports in Visual C++ 3) Serial Communication in Windows 1) You can use this with Windows (incl. MinGW) as well as Linux. Alternative you can only use the code as an example. 2) Step-by-step tutorial how … Read more

The program can’t start because libgcc_s_dw2-1.dll is missing

I believe this is a MinGW/gcc compiler issue, rather than a Microsoft Visual Studio setup. The libgcc_s_dw2-1.dll should be in the compiler’s bin directory. You can add this directory to your PATH environment variable for runtime linking, or you can avoid the problem by adding “-static-libgcc -static-libstdc++” to your compiler flags. If you plan to distribute the … Read more

How to compile makefile using MinGW?

Excerpt from http://www.mingw.org/wiki/FAQ: What’s the difference between make and mingw32-make? The “native” (i.e.: MSVCRT dependent) port of make is lacking in some functionality and has modified functionality due to the lack of POSIX on Win32. There also exists a version of make in the MSYS distribution that is dependent on the MSYS runtime. This port operates … Read more

how to uninstall MinGW and make cygwin ‘make’ as deafult make program with gcc 3.8.1

Answer 1: if you have used an installer, uninstall it through program manager Remove your MinGW folder (eg. C:/MinGW) Make sure there’s no MinGW path left in PATH environment variable If you haven’t used an installer, you can skip 1., but if you have, you should check 2. and 3. manually. Answer 2: Do you use an IDE? If yes you can specify your … Read more

Using GNU Scientific Library (GSL) under Windows x64 with MinGW

When you build projects for MinGW, under MSYS, you should always specify a –prefix argument to ./configure; (the /usr/local default specifies an MSYS specific path, which is entirely unsuitable for MinGW application development). In your case, you should have configured GSL thus: or, better still, segregate the build files from the sources, (e.g. as a subdirectory of the GSL top source directory): … Read more

What is the difference between Cygwin and MinGW?

As a simplification, it’s like this: Compile something in Cygwin and you are compiling it for Cygwin. Compile something in MinGW and you are compiling it for Windows. About Cygwin Cygwin is a compatibility layer that makes it easy to port simple Unix-based applications to Windows, by emulating many of the basic interfaces that Unix-based operating systems … Read more