mingw

MinGW error: No such file or directory exists [closed]

北城以北 提交于 2019-12-29 08:52:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm running MinGW on windows XP SP3. I wrote a simple program in C++ and saved it as a .cpp file. When I tried to compile it in MinGW at the correct directory a message appeared saying " Error: No such file or directory exists" but I know its in the correct directory. This is what I typed into MinGW cd C:\MinGW

make is not recognized as an internal or external command - Qt SDK - Windows

眉间皱痕 提交于 2019-12-29 08:33:09
问题 I installed Qt through Qt-SDK 2010.01 . How to run make on Qt 's terminal now? I have set the System path: Qt path command prompt: Please help. :( :( 回答1: You should run mingw32-make instead of make . If you want to be able to call it via make for simplicity, you might want to define an "alias" which runs mingw32-make . While I'm not very familiar with the CMD in windows, I think this should be possible with the following command: set make=mingw32-make However, I don't think this will be

make is not recognized as an internal or external command - Qt SDK - Windows

半城伤御伤魂 提交于 2019-12-29 08:33:06
问题 I installed Qt through Qt-SDK 2010.01 . How to run make on Qt 's terminal now? I have set the System path: Qt path command prompt: Please help. :( :( 回答1: You should run mingw32-make instead of make . If you want to be able to call it via make for simplicity, you might want to define an "alias" which runs mingw32-make . While I'm not very familiar with the CMD in windows, I think this should be possible with the following command: set make=mingw32-make However, I don't think this will be

Convert from MinGW .a to VC++ .lib

依然范特西╮ 提交于 2019-12-29 07:57:07
问题 I have an old library (in C++) that I'm only able to build on MinGW+MSYS32 on Windows. From that I can produce a .a static library file generated from GNU libtool. My primary development is done in Visual Studio 2008. If I try to take the MinGW produced library and link it in Visual Studio, it complains about missing externals. This is most likely due to the C++ symbol mangling that is done, and that it doesn't match whats in the .a file. Is there any know way to convert a static .a file to

GLib-GIO-ERROR**: No GSettings schemas are installed on the system

时光总嘲笑我的痴心妄想 提交于 2019-12-28 22:07:52
问题 Unfortunately, I am using Windows (Windows7 x64). With MinGW compiler in Code::Blocks and GTK+3.6.4. I compiled manually all the schemas from glib. When I use File Chooser dialogue / colorpicker - it doesn't matter, I am getting the following error: GLib-GIO-ERROR**: No GSettings schemas are installed on the system and the program terminates. What do I have to do to fix this? 回答1: GSettings looks at the compiled schemas in the directories pointed by the $XDG_DATA_DIR environment variable. You

MinGW doesn't produce warnings

浪尽此生 提交于 2019-12-28 16:38:00
问题 I have successfully installed MinGW on a Windows 7 32bit machine, and have tried to compile a simple program using either the command line or the MinGW console. The code has an intentional error in a printf statement: #include <stdio.h> #include <stdlib.h> int main( void ) { printf("%d\n" , 3.14 ) ; return 0 ; } The command gcc -Wall hello.c gives a correct warning: hello.c:7:2: warning: format '%d' expects argument of type 'int'... But the command gcc -std=c99 -Wall hello.c doesn't give any

MinGW doesn't produce warnings

天涯浪子 提交于 2019-12-28 16:37:19
问题 I have successfully installed MinGW on a Windows 7 32bit machine, and have tried to compile a simple program using either the command line or the MinGW console. The code has an intentional error in a printf statement: #include <stdio.h> #include <stdlib.h> int main( void ) { printf("%d\n" , 3.14 ) ; return 0 ; } The command gcc -Wall hello.c gives a correct warning: hello.c:7:2: warning: format '%d' expects argument of type 'int'... But the command gcc -std=c99 -Wall hello.c doesn't give any

Why does my Qt 4.5 app open a console window under Windows?

試著忘記壹切 提交于 2019-12-28 04:00:28
问题 I've been playing around with Qt Creator 4.5 under Linux. My application builds just fine under Linux, but if I build in Windows, the app always opens a console window at startup. Can I stop it doing that? I'm building using the default MinGW setup, perhaps that is related. If need be I can build with Visual Studio, but I'd like to understand what is happening first... Edit : I just created a simple test GUI app with Qt Creator under Windows and it didn't exhibit this behaviour. Either this

Link to Python with MinGW

做~自己de王妃 提交于 2019-12-28 02:53:23
问题 I wan't want to create a cross-plattform programm that embedds the python interpreter, and compile it with MinGW. But the Python Binary distribution provides no libraries for MinGW to link with (only python32.lib for Visual C++), and the Python Source package provides no support for compiling with MinGW. I tried linking to python32.lib in Mingw with -lpython32 but it still generates errors like: main.cpp: undefined reference to `_imp__Py_Initialize' main.cpp: undefined reference to `_imp__Py

How to reduce the size of executable produced by MinGW g++ compiler?

孤者浪人 提交于 2019-12-28 02:12:05
问题 I have a trivial "Hello world" C++ program that is compiled to 500kB executable by MinGW g++ compiler under Win XP. Some say that is caused by iostream library and static link of libstdc++.dll . Using -s linker option helped a bit (reducing 50% size), but I would by satisfied only by <10kB executable. Is there any way how to achieve this using MinGW compiler? Portability is not a big concern for me. Is it possible to copy libstdc++.dll with the executable using dynamic linking? If so, how to