I have ported some code from Mingw which i wrote using code::blocks, to visual studio and their compiler, it has picked up many errors that my array sizes must be constant! Why does VS need a constant size and mingw does not?
e.g.
const int len = (strlen(szPath)-20);
char szModiPath[len];
the len variable is underlined in red to say...
I've built mingw32 for Linux and would like to use it with Eclipse IDE. However, the CDT plugin uses some predefined way to auto-detect toolchains (which, for mingw, seems to only work for Windows) and doesn't have a way to locate them manually. Is there any way to make it detect mingw under Linux?
...
Hi,
I have an image processing C program which uses OpenCV library. I was developping this with Visual Studio 2008 until this happened. So I moved the whole project to netbeans(6.9) and MinGW.
I have configured netbeans to use OpenCV libraries as guided in this blog.
But when I run the program it gives this error " The application fa...
Hi,
I am trying to create a DLL to use it with Java JNI. I am using Netbeans C/C++ plugin to create the dll.
but after compile i am getting the following error (.o objects already created)
any idea? am i missing something?
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf
make[1]: Entering directory `/c/p...
I have Cygwin and MinGW(TDM) installed. To build certain projects from source, you have to run a ./configure script, which requires a bash shell and certain unix utilities. For this, the MinGW project distributes MSYS, which is basically an old, stripped-down version Cygwin. I already have Cygwin installed, so I'd rather just use that. W...
I've tried -fvia-C and the -pgms, but none of them manage to create an executable, splurting out lots of errors like Warning: retaining unknown function ``L4' in output from C compiler.
...
In theory, it's very easy to build a Win32 app with a resource file using cmake. In an add_executable command, a resource file can be listed as easily as a C or C++ source file. There is a known bug, however, when building using MinGW tools.
I found a workaround, which is to include the following in CMakeFiles.txt...
if(MINGW)
set(CM...
Hello!
I built libbz2 (static variant) using MinGW (GCC 4.5.0) compilation system and now try to import this library into my MSVS2008 project.
I've done these things already and everything worked fine, for example, with zlib (which means that created C libraries are actually interchangeable).
However, when doing the same with libbz2, ...
In this tut http://blog.lyxite.com/2008/01/compile-objective-c-programs-using-gcc.html it says that after installing gnustep for windows I can run gcc to compile my prog.
But where is it installed ? I can't find it under Gnustep folder though a GNUstep\mingw\bin folder with a bunch of files exist. So isn't the package install bugged ?
...
Hi,
actually i create a CMake script to localize the DevIL library using MSYS/MinGW on win32 platform. I've extend the origin FindDevIL CMake script to regard the MinGW root when try to find DevIL:
project (DevILTest)
cmake_minimum_required(VERSION 2.6)
FIND_PACKAGE(OpenGL)
IF(OPENGL_FOUND)
MESSAGE(STATUS "OpenGL render API found.")...
I know how to compile the objective c program using gnustep version of mingw.
But I don't like their shell and I want to use the standard mingw gcc compiler.
I put this gcc bin directory in environment path of course, open command prompt in my helloworld.m directory
#import <Foundation/Foundation.h>
int main (int argc, const char * ...
I'm trying to get gdb to run programs with input redirection to stdin. For example, without gdb I would run a program like this:
prog < input.txt
Now in gdb, the usual way to do this is run < input.txt. However, it doesn't work for me and when doing this nothing gets redirected into stdin.
I'm using Windows with MinGW. What could be ...
Hi,
I'm writing a recursive flood-fill algorithm to find connected components in an image, my code compiles and runs well with MSVC 2008 compiler; but the mingw-compiled binary crashed at runtime.
After I converted the algorithm to non-recursive with std::stack, everything goes well.
But what if I must use recursive algorithm in some...
I am a newbie. Using class clsMRDateTime and am creating 2 instances of objects in the main code. When I activate the line:
clsMRDateTime objMRDateTimeURL("10_05_2011");//THIS CAUSES THE PROBLEM!!!!!
It causes the date in the first instance of the class to match the second instance of the class. I checked for static class var...
I m using MinGW for running g++ compiler on windows. Whenever I run the following code, it the compiler gives strange results.
Code:
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
int n;
string a;
cin>>n;
getline(cin,a);
cout<<a;
return 0;
}
No problem occurs when I compile the code...
Hello, I am working on learning the windows API and am using mingw as my compiler with Code::Blocks as my IDE. I have run into an issue with using the wWinMain function. I used the program located here link text. It compiles fine on VSC++ 2008 express but when using mingw i get the "undefined reference to WinMain@16" error. I have fi...
Hi,
I just want to compile my OpenCV 2.1 programs using MinGW. But I can't, because it won't compile ANYWAY. I DON'T WANT a solution to compile it, I just want the binary libraries because the pre-built VS2008 libraries don't work with MinGW.
Can someone give it to me?
Thanks in advance.
...
I asked in another thread, how to profile my stuff, and people gave me lots of good replies, except that when I tried to use several of free profilers, including AMD Codeanalyst for example, they only support Microsoft PDB format, and MingW is unable to generate those.
So, what profiler can help me profile a multi-threaded application w...
Greetings all,
I use MinGW,QT and CMake for my project.
As shown in the figure, my project has two modules.
libRinzoCore.DLL - a shared library which define some abstract classes and interfaces and some core functionality of the application.This module is used to implement dynamic Plugins (which are also shared libraries which auto...
Hi all,
actually i'm working on a windows (MSYS/MinGW) migration of our Linux project. With Linux everything works fine, but with windows i got trouble with static members and singletons which have to be used over the context of different dlls.
I.e. I've an configuration mapper, which is a singleton build in a config.dll. If i use this...