Before resorting to stackoverflow, i have spend a lot of times looking for the solutions. I have been a linux-user/developer for few years, now shifting to windows-7.
I am looking for seting-up a development environment (mainly c/c++/bash/python) on my windows machine. Solutions i tired -
VirtuaBox latest, with grml-medium (very ligh...
Hello I have problem with using std::locale::facets from DLL.
It seems that locale "id" is not shared between DLL and the source. has_facet reports
that "facet exists" on different kind of facet. And facet ids reported incorrectly.
In the below example, foo::id and bar::id are seems to be the same and the has_facet
reports true on uni...
When installing Qt, I unchecked the MinGW installation option as I have it already installed. Now after installing I am not able to build an example program I found in a book. All the build options in the menu are disabled. the code I am trying to execute is:
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
...
I would like to detect whether qmake is currently building using MingW (win32-gcc) or Visual Studio (win32-msvc200X).
At the moment I am using the following construct:
windows{
contains(QMAKE_CC, gcc){
# MingW
}
contains(QMAKE_CC, cl){
# Visual Studio
}
}
This does not seem particularly robust. Is ther...
How does one recompile Qt Creator using MinGW in Windows XP?
...
Hi,
What is the right way to build a library from source using MinGW and then reference it in the GUI application's project? I'm not familiar with gcc and makefiles, but I think there must be a utility which generates makefiles from existing source.
The library itself doesn't depend on anything except the standard C lib.
Thanks!
...
The long double data type can have these conversion specifiers in C: %Le,%LE,%Lf,%Lg,%LG (reference).
I wrote a small program to test :
#include <stdio.h>
int main(void) {
long double d = 656546.67894L;
printf("%.0Le\n",d);
printf("%.0LE\n",d);
printf("%.0Lf\n",d);
printf("%.0Lg\n",d);
printf("%.0LG\n",d);
return 0;
}
...
I am using:
Windows XP
Python 2.6.2 (standard install from python.org)
git version 1.6.5.1-preview20091022 (installed from http://code.google.com/p/msysgit/)
I have an environment variable looking like an absolute path (/path/to/dir) but I'm using it to construct a git URL. At some point, it's getting translated to C:/Program Files/G...
I've successfully built a program that can read Mifare 1K Card using Qt on Linux. So now, I would like it to run on Windows. From what I've gathered, there's no PCSC-Lite port on Windows and I need to use winscard from Windows SDK. I've downloaded it and I got lots of undefined reference errors from my Qt in Windows (with MingW). For exa...
When you download visual C++ 2008 express edition
This file exists:
./Microsoft Visual Studio 9.0/VC/redist/x86/Microsoft.VC90.CRT/msvcr90.dll
In the file redist.txt it says
"The following list is a list of files available with Microsoft Visual Studio 2008 for redistribution under the Visual Studio 2008 license. If the Microsoft sof...
From llvm.org I've downloaded llvm-2.6-x86-mingw32.tar.bz2 into c:\llvm and llvm-gcc-4.2-2.6-x86-mingw32-tar.bz2 into c:\llvm-gcc as well as setup a desktop shortcut the following batch file in c:\llvm-gcc which attempts to setup an environment for compiling via the llvm-gcc command line too:
@echo off
color 0E
echo Configuring LLVM env...
I'm not programmer
I want to compile Inkscape in win32, and stumbled on these error messages:
ui/dialog/filedialogimpl-win32.cpp:1379: error: in C++98 'matrix' must be initialized by constructor, not by '{...}'
make[1]: *** [ui/dialog/filedialogimpl-win32.o] Error 1
The suspected code of filedialogimpl-win32.cpp:
...
// D...
Hello, I'm trying to port some old MSVC C++ code to MinGW/GCC.
One problem is that the project relies heavily on the /DELAYLOAD option for functions that aren't always used, and where the proper dll is located at runtime.
Is there such a similar option on MinGW/GCC?
This code is targeting the windows platform.
...
I'm porting some Visual Studio 2008/VC9 stuff to Code::Blocks/MinGW and for some reason the linker cannot find a static library from another project in the workspace.
In Visual Studio 2008 I could just set the static lib project as a dependency, and it would build in the right order (i.e. static lib needs to be built before linking the ...
I'm trying to find a way to change the warning level (I believe the default is 3 and I'd like to change it to 4) of my project developped using Qt Creator (1.3.0) and MinGW.
Is it possible ?
...
I have a static lib A, which also uses static libs B, C and D.
I then have applications X and Y which both use A, but not B, C or D.
Is there some way to make it so X and Y will automatically see that A used B, C and D and link them, so that I don't need to keep track for the entire dependency tree so I can explicitly pass every static...
I'm writing a python wrapper for an old proprietary system with header files, a .lib and some .dlls available to me on Windows. The library that is referenced is in .lib format (header files have references to Borland C & MSC)
I've attempted to convert the .lib to a .a file with pexports -- it complains about not being able to load PE ...
Are there any advantages to compiling my Windows application with winelib for Linux users? Why not just give them the .exe and let them run it with Wine? Seems just like extra work for no gain.
...
I am learning NASM and am tying to compile this code (which I found here). It assembles using this NASM command:
nasm -f coff -l printf.lst printf1.asm
to printf.o but this gcc linking command:
gcc -o printf1 printf1.o
fails with the error:
printf1.o:printf1.asm:(.text+0x1a): undefined reference to `printf'
collect2: ld returned...
I'm working on a 100% C project for which the windows port is compiled using visual studio 2008 express edition. My project uses a couple of linux libraries which I was able to statically compile using MingGW.
I'd like to know if it's safe to link my project to those libraries and what were the possible trouble I might encounter.
I cou...