mingw

Datatype convertion problems

Hi all, some days ago i've posted a question for a win32 API stacktrace implementation with MSYS/Mingw: http://stackoverflow.com/questions/3318564/win32-api-stack-walk-with-mingw-msys The hint with the explicit loading of the dll was the correct solution. So i've restart the try to implement a stacktrace using the win32 CaptureStackBac...

Error compiling C code using MinGW in Windows 7

The Makefile is as follows: .PHONY: all clean all : backtrace.dll test.exe backtrace.dll : backtrace.c gcc -O2 -shared -Wall -o $@ $^ -lbfd -liberty -limagehlp --verbose test.exe : test.c gcc -g -Wall -o $@ $^ clean : -del -f backtrace.dll test.exe The source code backtrace.c is a library that allows you to obtain a st...

Using FreeGLUT, how can I create an OpenGL window, specifying both title and screen location?

The FreeGLUT API has several functions for window management: int glutCreateWindow(const char * title ); int glutCreateSubWindow(int window, int x, int y, int width, int height); void glutDestroyWindow(int window); void glutSetWindow(int window); int glutGetWindow(void); void glutSetWindowTitle(const char* title); void glutSetIconTit...

Using gcc/g++ instrument functions with MinGW?

Hello, i try to use the gcc instrument functions with g++ compiler of MinGW, but i always got linker issues. Is it possible to use the instrument functions with MinGW/MSYS? The linker failure output: $ g++ instrumentFunctions.cpp -o iftest -finstrument-functions >> iflog.txt C:/Users/HELLHO~1/AppData/Local/Temp/ccUwxrxt.o:instrumentFu...

Get method name from instrument function using MinGW/MSYS

Hi all, i've successfully get the GCC instrument functions functional with MSYS/MinGW. When i use instrument functions I only have the pointer as reference of the module, which has invoked the instrument function... Now I try to get more detailed information of the module. Using Linux OS i could use the dladdr function to grab the name...

How to link against msvcr90.dll with mingw gcc ?

How to link against msvcr90.dll with mingw gcc? I tried -lmsvcr90, here's the minimal example: #include <stdio.h> int main(int argc, const char *argv[]) { printf("%s\n", "hello"); return 0; } My OS is win7, with mingw gcc 4.5.0 $ gcc -v ... gcc version 4.5.0 (GCC) $ gcc hello.c -lmsvcr90 $ a Then I got this error: R6034 ...

Using mingw/msys just for its posix tools: mount point question

I write cross-platform software, so I like my Windows environment to be Un*x-like (I'm an old Unix/IRIX/Linux geek). I just care about shells and tools, not so much about compilers or the build environment (I have a real industrial-strength build system that doesn't depend on mingw or cygwin). I just want a shell window on my Windows b...

Compiling/Using MySQL Connector/C++ with MinGW

Well, I guess the title sums it up pretty well. The connector comes with Visual Studio libraries and dlls. There is also a source tar available which doesn't compile. ...

Application plugins with MingW and "undefined reference" errors

I have a Qt application which uses Q_DECL_EXPORT to mark certain data types and functions of my main executable as exported. Likewise, when I compile my plugins, I mark those same symbols with Q_DECL_IMPORT to import them. This has worked great on linux. All I need to do is compile with -rdynamic and it goes well. Visual Studio 2008 has...

Using BFD with MinGW

Hi all, i actually trying to compile an application that uses bfd library (a part of beanutils) using MinGW. I've added the libiconv 1.13 and gettext 0.17 packages to my MinGW directory. If i compile my source including bfd: $ g++ iftest.cpp -o iftest -llibiconv -lbfd -liberty This leads to the following linkage error: c:/binrev/dev...

Building the latest iconv and libxml2 binaries in Win32

I'm trying to get MinGW and MSYS working so I can build iconv and libxml2 in Windows, but I'm finding ./configure and make are giving lots of BSD/Unix related errors that aren't specific enough to google, and not descriptive enough for me to figure out. Can anybody go through some of the steps needed to get iconv and libxml2 .dll/.lib b...

Building a boost application using a Makefile and MinGW (Undefined references)

Okay so I have the following makefile CC = g++ #CFLAGS = -g -Wall CFLAGS = -g LDFLAGS = -lm #client : shared.lib #server : shared.lib shared : src/shared/opcode.h $(CC) $(CFLAGS) -I./src/ -I./lib/boost/ -L./lib/boost/stage/lib/ -L./lib/win_sdk/ \ -D_WIN32_WINNT=0x0501 \ -lWS2_32 \ -lboost_system-mgw34-mt-1_43 \ -lboos...

GDB Debugging on Eclipse hangs for infinite time

Hi, I downloaded Eclipse for C++ v 3.6 32-bit version on my WIndows 7 64-bit OS. I can build and run my code, but I cannot debug. I am using MingW32 compiler v5.1.6 with GDB v7.1 . When try to "debug" my application, the progress tab shows "Launching: Configuraing GDB" at 86% for infinite time. The stop button beside the progress bar...

Some things missing from gnu gcc compiler headers? (commctrl.h)

I have been using the gcc compiler with code::blocks ide, and have noticed there are some things missing in the commctrl.h which are: PBS_MARQUEE and PBM_SETMARQUEE to set a progress bar to marquee animation style. LVS_EX_DOUBLEBUFFER for a double buffer on a list view... there are probably a lot more missing, but these are the ones i...

Anyone else using msysgit netinstall for general development environment on windows ?

The mingw site is kind of confusing and the installation instructions convoluted. I had been using the codeblocks distribution of mingw.I had also tried the development environment that comes with octave. But the msysgit netinstall seems to work better out of the box for building most things that require: ./configure ; make ; make instal...

Solving random crashes

I am getting random crashes on my C++ application, it may not crash for a month, and then crash 10 times in a hour, and sometimes it may crash on launch, while sometimes it may crash after several hours of operation (or not crash at all). I use GCC on GNU/Linux and MingW on Windows, thus I can't use the Visual Studio JIT Debug... I hav...

Eclipse CDT using MinGW does not output in console

Hi, I have a Windows 7 64-bit PC and I am trying to install a free C++ IDE, so I chose to install Eclipse Helios with CDT. For g++, make and gdb I installed msys and mingw according to this tutorial: http://wiki.wxwidgets.org/HowTo:_Install_MSYS_and_MinGW_for_use_with_Eclipse_CDT The versions are: make: GNU make 3.81 g++: 4.5.0 gdb: ...

swprintf and vswprintf not declared?

I am trying to compile Botan on Windows with MinGW, and am receiving the following error during compilation: c:\qt\2010.04\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:159: error: '::swprintf' has not been declared c:\qt\2010.04\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:166: error: '::vswprintf' has not been declare...

Does MinGW support MFC?

Hi, I have developed WinAPI applications using MinGW without problems. Now, can I do the same with MFC? ...

Default build settings Eclipse CDT

Is there any way to change build settings which are used when I create new project in Eclipse CDT? Some of toolchain setting I have to change every time I creating new project. ...