mingw

Linking QtCreator && OpenCv

ⅰ亾dé卋堺 提交于 2020-01-14 03:54:06
问题 I'm having a problem linking a library from opencv(2.3.1) and can't find a way to resolve it.. I'm using qtCreator with mingw and the pre-built vc10 dynamic lib files. So, here is what I have done till now: .pro file: TEMPLATE = app INCLUDEPATH += "E:/opencv/build/include/" INCLUDEPATH += "E:/opencv/build/include/opencv/" INCLUDEPATH += "E:/opencv/build/include/opencv2/" INCLUDEPATH += $$PWD/../opencv/build/x86/vc10 DEPENDPATH += $$PWD/../opencv/build/x86/vc10 win32:CONFIG(release, debug

VScode(一):C/C++ & MinGW & Code Runner

点点圈 提交于 2020-01-13 18:56:14
目录 1 VScode配置安装 2 MinGW配置安装 2.1 MinGW下载安装 2.2 MinGW环境配置 3 VScode编译C/C++ 3.1 扩展插件安装 3.2 项目配置 3.2.1 配置启动——launch.json 3.2.2 配置任务——task.json 3.2.2 配置跨库——c_cpp_properties.json 3 代码示例 3.1 源码获取 3.2 代码执行 4 参考资料 1 VScode配置安装 自行前往 VScode官网 下载,并按提示进行安装。 2 MinGW配置安装 2.1 MinGW下载安装 1)选择 下载源 2)选择安装模式(以免安装为例) 2.2 MinGW环境配置 1)配置用户环境变量 2)验证配置 # 配置成功 C:\Users\Administrator>c++ c++: fatal error: no input files compilation terminated. # 配置失败 C:\Users\Administrator>c++ 'c++' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 3 VScode编译C/C++ 3.1 扩展插件安装 3.2 项目配置 3.2.1 配置启动——launch.json { // Use IntelliSense to learn about possible

g++ won't play nice with wx-config

泪湿孤枕 提交于 2020-01-13 13:49:10
问题 I'm on windows using mingw and when i use the following to try and compile my wxWidgets code g++ main.cpp `wx-config --libs` `wx-config --cxxflags` I get the following error g++: `wx-config: No such file or directory g++: `wx-config: No such file or directory cc1plus.exe: error: unrecognized command line option "-flibs`" cc1plus.exe: error: unrecognized command line option "-fcxxflags`" And I cannot figure out what to do to make g++ play nice with wx-config Please help, thanks. 回答1: What

Does gcc(windows + MinGW) defines SCNd8, SCNu8 in inttypes.h?

我的梦境 提交于 2020-01-13 10:17:12
问题 #include <stdio.h> #include <inttypes.h> int main(void) { int8_t int8; int16_t int16; int32_t int32; int64_t int64; uint8_t uint8; uint16_t uint16; uint32_t uint32; uint64_t uint64; scanf("%"SCNd8"%"SCNd16"%"SCNd32"%"SCNd64"%"SCNu8"%"SCNu16"%"SCNu32"%"SCNu64, &int8, &int16, &int32, &int64, &uint8, &uint16, &uint32, &uint64); printf("%"PRId8"\n%"PRId16"\n%"PRId32"\n%"PRId64"\n%"PRIu8"\n%"PRIu16"\n%"PRIu32"\n%"PRIu64"\n", int8, int16, int32, int64, uint8, uint16, uint32, uint64); return 0; } I

Is there any package management system for MinGW+MSYS?

我只是一个虾纸丫 提交于 2020-01-13 07:54:29
问题 I am trying to compile some open source libraries in MinGW+MSYS. During the configure phase, I kept seeing some 3rd party libraries are missing. For now, my solution is to download the source of the missing libraries and follow the GNU build process to compile and install them into my MinGW environment. Is there any package management system for MinGW+MSYS to install packages easily? Just like apt-get . I tried the mingw-get for the missing package. But it reports the error below. 回答1: mingw

Native Windows API link problem on Qt + win32 + mingw

余生长醉 提交于 2020-01-13 05:49:27
问题 I am trying to use native windows API with Qt using mingw toolset. There are link problems with some functions. What happens? Is this a bug with mingw name mangling? #ifdef Q_WS_WIN HWND hwnd = QWidget::winId(); HDC hdcEMF = CreateEnhMetaFile(NULL, NULL, NULL, NULL ) ; Rectangle(hdcEMF,100,100,200,200); HENHMETAFILE hemf = CloseEnhMetaFile(hdcEMF); OpenClipboard(hwnd); EmptyClipboard(); SetClipboardData(CF_ENHMETAFILE,hemf); CloseClipboard(); #else The errors: undefined reference to

Building the latest iconv and libxml2 binaries in Win32

一笑奈何 提交于 2020-01-12 18:54:01
问题 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 built on a Win32 machine? I'm updating the libraries for some software and I fiddled around with this all day today and haven't figured it out. I got the newest

Building the latest iconv and libxml2 binaries in Win32

风格不统一 提交于 2020-01-12 18:51:48
问题 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 built on a Win32 machine? I'm updating the libraries for some software and I fiddled around with this all day today and haven't figured it out. I got the newest

Building the latest iconv and libxml2 binaries in Win32

走远了吗. 提交于 2020-01-12 18:51:00
问题 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 built on a Win32 machine? I'm updating the libraries for some software and I fiddled around with this all day today and haven't figured it out. I got the newest

Where is libintl3 and libiconv2 for gnu make on windows, needed to compile vim with ruby on MinGW

烂漫一生 提交于 2020-01-12 14:50:35
问题 I am trying to run gnu make for windows, but it wouldn't run because libint3.dll was not found. Sure enough, http://gnuwin32.sourceforge.net/packages/make.htm specifies that libint3 and libiconv2 are required, but trying to follow their link obviously generates an error on the server. So, do I need these libraries, and where would I get them, or can I download gnu make from somewhere else. more background Here's what I try to do, and maybe someone else can share a way how to do it differently