mingw

One MinGW, many GCC versions - how to do it?

Is it possible to have different GCC installations working with one MinGW installation? By MinGW I mean the common base which is always needed regardless which version of GCC compiler we're going to install and use; MinGW runtime binutils make MinGW API for MS-Windows and many other components which are part of MinGW but are not ...

QT/mingw32 undefined reference errors... unable to link a .lib

Hello, I am new to QT and have one error I am unable to fix... I have a bunch of windows (VS2005) static library file (.lib). And I am testing if they work well with QT. So I took the most simple library that I have. (Called "MessageBuffer"). So I added MessageBuffer.h to the main.cpp, and added the location of thoses file in the INCLU...

Compiling pdcurses with mingw in XP SP3 problem

Hello, I am having a problem compiling pdcurses 3.4 in my machine. My OS is windows XP SP3. My mingw32-make is version 3.81. According to the readme file all I had to do was go and issue a make command to get it done. And so I did. mingw32-make -f mingwin32.mak This starts the make process but it fails somewhere along the way in t...

MinGW - Update GCC version 3.4.5 to version 4.4

I've successfully install MinGW from the directions located here (Automated Install). But, I wanted to get the gcc version updated to 4.4. Do I simply overlay the files in my installation directory (C:\MinGW)? If not, how do I properly install this new version of MinGW/gcc? If this has been asked before, I'm sorry. I searched but was u...

Cross-debug Windows application on Linux box in Eclipse CDT

I'm moved from Windows to Ubuntu Linux, and now I want to set up development environment here. The problem is that I need C/C++ IDE comparable to Visual Studio Way to generate Windows PE binaries Way do debug Windows PE binaries At first time I tried Code::Blocks. Here I find guide to setting it up for cross-development so I managed ...

Build Managment: Eclipse project vs Eclipse Managed Make project

I am developing under Windows, and using Eclipse with CDT to develop C++ applications. Now, for build management I can create a normal C++ project and Eclipse will completely manage the build (calling the g++ compiler with proper arguments), or I can create a Managed Make C++ project and Eclipse will manage the Makefile then call make o...

Cross-compiling with OpenSSL for Windows

I'm trying to compile the oauth-utils http://mir.dnsalias.com/oss/oauth/start for Windows from Ubuntu. I have compiled it on Windows before (a few months back), but wanted to try cross-compiling. I got openssl build using mingw32 ok, and put libssl.a and libcrypto.a in the right place. The linker is now finding the libraries (yay!) bu...

Adding support of Windows to POSIX project... How painful? Is it worth the effort?

Hello, I'm trying/thinking of making CppCMS - C++ Web Framework project little bit more cross platform. Today I can easily support Linux, OpenSolaris, FreeBSD and even Cygwin. But when it comes to Native Windows it becomes really painful: The overview of the situation: I'm POSIX/Linux developer and I'm barely familiar with Native Win...

Compiling Small Gcc Project on Windows Using MinGW

Hello, so I've been programming in C++ for almost 2 years now, and the whole while I've had the pleasure of using an IDE (VS) with lovely project settings and automatic linking and the like. I've always stayed away from any external libraries which required me to compile via makefiles, or at least the ones which were meant for linux envi...

GNU make --jobs option in QMAKE

I am using qmake to generate MinGW32 Makefiles for a small Qt C++ app we are developing. My problem: all those dual/quad core CPUs are sitting there idly while only one thread is doing the building. In order to parallelize things I tried passing --jobs 4 to make, but the problem is that qmake generates a generic makefile inside of which ...

MinGW linking problem

I have a linking problem with MinGW. These are the calls: g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug/Simulation.exe debug/LTNetSender.o debug/main.o debug/simulation.o debug/moc_simulation.o -L'c:/Programmieren/Qt/4.5.2/lib' -lmingw32 ...

How to install RMagick gem in Ruby 1.8.6 MingW?

Do you have a detailed guide for this? Thanks a lot :) ...

MinGW doesn't seem to link against user32

OK. I've been trying to make a program I've been writing in Java be able to find out if the Windows desktop is locked by using JNI. I've succeed in getting JNI working, but the C code I was using at first wasn't returning the correct answer. I got some new code (from here on SO), changed it a little, but I'm having link errors. When li...

MinGW compile for MS DOS

Hi all! I'm using Code::Blocks with MinGW to write my C++ applications in Windows XP. Now I want to compile my code to run under an MS DOS environment, so I can put it on my DOS formatted floppy disc. Can anyone help me? Thanks in advance. P.S. I don't mean the Command Prompt, but really the good old MS DOS Operating System. ...

Global structs not being seen.

Defined as: Class.h #ifndef CLASS_H_ #define CLASS_H_ #include "Class2.h" #include <iostream> struct Struct1{ }; struct Struct2{ }; class Class1 { }; #endif Then the other header file, where I use this: #ifndef CLASS2_H_ #define CLASS2_H_ #include "Class.h" class Class2 { public: Class2( Struct1* theStruct,...

Why does Mingw exist?

MSYS and UNIX-like build systems apart; why does Mingw exist? What I mean is, why isn't win32/64 just another target available in "vanilla GCC"? Are there technical reasons for this or are they "political"? It would seem to me that there isn't really anything special about the Windows platform that would make a GCC port to it "incompatib...

Using libs/dlls compiled in Linux/MinGW in Visual Studio

Update: I get this warning when compiling: multiple '.text' sections found with different attributes Hi, I've compiled some libraries (.a and .dll) in Linux using the MinGW Cross Compiler. I can successfully link against them (.a) in Visual Studio 2008. However, when it runs (using .dll), it terminates with the address pointer pointing...

How do I install PyGTK / PyGobject on Windows with Python 2.6?

Hi, I have an application which depends on PyGTK, PyGobject, and PyCairo that I built to work on Linux. I want to port it over to windows, but when I execute import gobject I get this: Traceback (most recent call last): import gobject File "C:\Python26\lib\site-packages\gtk-2.0\gobject\__init__.py", line 30, in <module> from ...

How is the C++ standard library linked to my application?

When I usually use code (include headers) from 3rd party (non-standard) C++ libraries, a pre-built binary file is linked to (or included in) the target executable that represents my application, but what happens with C++ standard library?, as far as I have seen I don't have to ship a library with an application that uses code only from t...

Include problems when using CMake with Gnu on Qt project

Hi, I am starting a multiplatform (Win Xp, Linux) qt project. I want to use an out of source build so my directory structure is as followed: project/ CMakeLists.txt (global CMake file, includes other CMakeLists) build/ (my build directory) libA/ CMakeLists.txt mystuff/ subprojectA/ CMakeLists.txt s...