mingw

using mingw to cross-compile an opengl app for windows

heya, i am running linux (ubuntu), I am having some trouble with this. i've tried downloading glut32.dll and sticking it in mingw's lib/ directory and also setting up the appropriate headers in include/, however - although the compile is fine - the linker has a serious problem looking up the symbols. how do i go about doing this? how ...

code blocks 8.02 console program not outputting cout statements with SDL

im currently using the SDL-devel-1.2.13-mingw32 library in code blocks 8.02. with the mingw 5.1.6 installed separately on C:\ this program compiles and runs with no errors but i can't see the last system("pause"); on the screen. When i press any key, it of course skips over the system("pause"); then code blocks tells me that it successfu...

How to use the Windows API in MinGW?

How to use the Windows API in MinGW? ...

Undefined reference to vtable. Trying to compile a Qt project

I'm using Code::Blocks 8.02 and the mingw 5.1.6 compiler. I'm getting this error when I compile my Qt project: C:\Documents and Settings\The Fuzz\Desktop\GUI\App_interface.cpp|33|undefined reference to `vtable for AddressBook' File AddressBook.h: #ifndef ADDRESSBOOK_H #define ADDRESSBOOK_H #include <QWidget> class QLabel...

How to force MinGW to recompile everyhing

Normaly MinGW (GCC C Compiler) recompiles only files that have beeen changed. But I fear this does not work properly. So I wan't to recompile everything at each "Compile All" or "Compile Project". Is there any option to accomplish this ? ...

Opening Large (24 GB) File In C

I'm trying to read in a 24 GB XML file in C, but it won't work. I'm printing out the current position using ftell() as I read it in, but once it gets to a big enough number, it goes back to a small number and starts over, never even getting 20% through the file. I assume this is a problem with the range of the variable that's used to s...

Why isn't the gcc 4.x.x series compilers installed by MinGW by default?

Currently, MinGW's only installs the 3.x.x series of the gcc compiler by default. However, it looks like the 4.x.x series of compilers have been out for some time, and as others have mentioned, it seems to work just fine. Is there any reason why it hasn't moved to the 4.x.x versions yet, and any reason why I shouldn't use the newer ver...

Win32 status bar with XP style

I try to create a window with a status bar: #include <commctrl.h> InitCommonControls(); hStatus = CreateWindowEx( 0, STATUSCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP, 0, 0, 0, 0, hWnd, (HMENU)IDC_MAIN_STATUS, GetModuleHandle(NULL), NULL); int statwidths[] = {100, -1}; SendMessage(hStatus, SB_SETPARTS, sizeof(statwidth...

Extract debugging information from a msys/mingw gcc built dll using rebase.exe?

I'm trying to analyze a mini crash dump and need symbol files in order to get more details about the crash. Im currently just seeing: "034eff74 0086eee9 00000000 0089d58d 034eff94 app_integrator!ZNK14ACE_Data_Block4baseEv+0x6" Is it possible to extract debugging information from a msys/mingw gcc built dll into a windbg readable format ...

Boost::Xpressive compile puzzle under MinGW

Hello all :) Switching to GCC for the first time, and I'm getting a bit confused by what the compiler is telling me here. Essentially, it's behaving like boost::xpressive::wsregex is not defined (I believe). Here is the relevant code: #include "criterion.h" #include <string> #include <boost/xpressive/xpressive.hpp> //More lines of co...

Building ffmpeg for Windows with MSYS and MinGW

Hello All, I am trying to build ffmpeg for windows (Xp - SP2) as given here. ./configure -–extra-cflags=”-mno-cygwin -mms-bitfields” -–extra-ldflags=”-Wl, -add-stdcall-alias” -–enable-memalign-hack -–enable-shared -–disable-static -–target-os=mingw32 The above command is placed in a myconfig file as instructed and when i run ./mycon...

Best way to setup a Windows build environment for C/C++

Basically I want to compile C/C++ using the GCC on Windows. The two competing platforms, as i see it, are MinGW and Cygwin. Each have their own benifits and limitations. MinGW compiles for Windows, whereas Cygwin needs the cygwin .dll. However installing libraries on MinGW is difficult, whereas on cygwin it's easier, using the setup.exe ...

Problem compiling freetype2 with MinGW/MSYS

There seems to be a problem compiling freetype2 with MinGW and MSYS My attempts on a clean copy of the freetype source, and an unadulterated MinGW and MSYS give: Andrew@MCARDLE-PC ~/documents/code $ cd freetype-2.3.11 Andrew@MCARDLE-PC ~/documents/code/freetype-2.3.11 $ ./configure FreeType build system -- automatic system detection ...

How do I pause to inspect results of sh commands run by a Makefile?

So, I have a Makefile which runs different commands of how to build S/W. I execute make from within a MSYS / MinGW enviroment. I found for example, the sleep <seconds> command, but this only delays the execution. How can I make it wait for a key being pressed, for example? ...

cross-compiling autoconf-based tools with mingw on Mac OS X

I'd like to cross-compile some open-source libraries (libiconv, gettext, glib2) for windows using mingw on Mac OS X. I've installed mingw on Mac with MacPorts. But now I'm not sure what to give to the configure script so that it will work. The cross-compilation tutorials I've seen all talk about makefiles, but no one mentions what to ...

Installing Qt4 on Windows - do I need to fully install MingW or just have local copies

That is, can I get away with DLLs in the install directory or does the installer need to ensure that MingW is fully installed? ...

Which version of gcc to install with MinGW?

If compiling and linking with MinGW gcc v3 is painfully slow, and gcc v4 is not the default install option: What, for a beginner are the advantages/disadvantages of installing one version or another? Say for example with gcc v4, I want to use PDCurses or other GNU libraries will I first have to recompile these from source? I'm only a...

Right mouse click is disabled in MinGW bash shell, how to restore

When I run the MinGW bash shell, I can no longer open the right-mouse menu. when I exit the shell, and return to the cmd.exe shell, the right mouse button works again. Is the MinGW bash version disabling the mouse button somehow? and how can I prevent this? ...

GCC - shouldn't a warning be issued?

I've recently set up a MinGW + MSYS environment on my laptop to check how things are with Netbeans C/C++ support. Everything seems to work fine, however, during my testing I have noticed a difference between GCC and Microsoft's cl.exe compiler. Here's a sample program: #include <stdio.h> #include <stdlib.h> #include <limits.h> int mai...

Gvim, MinGW and Powershell making them work the CLI way.

Just shifted to windows7. Liking it :). Is there a way to install MinGW in windows, such that, i can cd to my code directory (which is different from MinGW install directory) and compile my code there. IF, no then what is the equivalent of $PATH (bourne shell) in windows, and how shall i set it. Can this trick (setting MinGW in default...