mingw

How to link the cs50 C library in gcc on windows

烂漫一生 提交于 2020-01-25 07:03:25
问题 I'm new to С programming and have been trying to compile my code using MinGW/GCC, but I try to include cs50 (cs50.c, cs50.h) library, and the compiler can't find it. Help me compile who knows what's going on. I tried to give such command: gcc -LC:\Users\apple\Desktop -lcs50 mario.c But the result is this: c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: cannot find -lcs50 collect2.exe: error: ld returned 1 exit status Or: c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../..

Does MinGW influence compilation — a GTK program

会有一股神秘感。 提交于 2020-01-25 04:41:05
问题 I compiled a GTK program in MinGW environment. It worked perfect. Recently, I updated MinGW and recompiled the GTK program, then the program always stopped with Segmentation fault. I have tried to use gdb to look for errors but I couldn't. The config of GTK is exactly same in the old and new MinGW. Therefore, I am suspicious of MinGW environment that influences compilation. I found the version of gcc is different in two environment: old MinGW new MinGW gcc 3.4.5 4.7.2 Any idea? Does anybody

Running System32 programs instead of SysWOW64 when launching from MINGW

耗尽温柔 提交于 2020-01-24 22:55:06
问题 I'm trying to create EXE files from a shell script file I'm launching from minggw (used from git bash) My problem is when I run these commands: C:/Windows/system32/iexpress.exe //N C:\\git\\install_64bitWindows.SED C:/Windows/SysWOW64/iexpress.exe //N C:\\git\\Install_32bitWindows.SED They always end up invoking the makecab in SysWOW64 (which creates a 32 bit .exe) Is there anyway for me to launch a new cmd from system32 for me to be able to make my 64 bit .exe? 回答1: Because you're running

Qt的安装与配置问题

柔情痞子 提交于 2020-01-24 22:43:36
12.qtcreator配置 1.打开 tools->options 选择Build&Run 2.增加Compilers(编译器) 点击Add选择GCC 然后点击Browse选择g++ /home/csgec/software/arm-2014.05/bin/arm-none-linux-gnueabi-g++ 选择完成点Apply 3.增加Qt版本 选择Qt Versions 点击Add 选择/usr/local/qtlib5.6.0/bin/qmake 选择完成点击Apply 4.增加工具包 选择Kits 点击Add 修改Complier为第2步设置的 修改Qt version为第3步设置的 Name改为Qt5.6.0-ARM 完成后点击Apply and OK 集成的QT及QT Creator安装比较easy,本文介绍的是QT和QT Create独立安装的方法,当然,也不是很难。 首先说明一下:QT是一个类库,QTCreator是一个框架。要使用QTCreator这个框架必须先把QT的平台搭建好。这个平台需要什么呢?主要需要以下几样:QT(QT库每个版本都有些许变化,可以根据自己需要选择版本,这里的个人需要并不是指功能,而是指你可以选择的教学资源,你有本QT4的书,最好就选择QT4的库,当然,你非要选择QT5也是可以的啦,这里只是建议),编译器(这里主要有两种

Vim behaving weirdly on Mingw

折月煮酒 提交于 2020-01-24 05:45:07
问题 My Vim on MinGW 4.6.2 is behaving weirdly, for example, pressing Backspace in insert mode deletes characters, but I have to move the cursor with arrow keys before the deleted characters disappear, and it also takes me out of insert mode. Another example, pressing Del to delete characters sometimes generates weird characters like changing lowercase characters to uppercase, or corrupts the next character that I key in, for example pressing 'S' gives me '$' initally. Am I using Vim wrong or

QArrayData error, linking Qt libraries with CMake

邮差的信 提交于 2020-01-24 01:19:12
问题 What I've been trying to do is to link Qt libraries to my project with CMake. I would use CMake GUI to generate MakeFile and then run MinGW32-make on it, which would give me '[File Name].exe' as intended. However, whenever I run the executable file, I get a message saying: "The procedure entry point _ZN10QArrayData10deallocateEPS_jj could not be located in the dynamic link library etc." https://i.stack.imgur.com/JpdwK.jpg I initially built this software using Qt Creator and QMake, so I can

vscode中使用mingw-w64运行c++程序

◇◆丶佛笑我妖孽 提交于 2020-01-22 19:16:41
MinGW-w64 与 MinGW 的区别在于 MinGW 只能编译生成32位可执行程序,而 MinGW-w64 则可以编译生成 64位 或 32位 可执行程序。 vscode中使用mingw-w64运行c++程序的教程见下方链接: https://code.visualstudio.com/docs/cpp/config-mingw 来源: CSDN 作者: chouchoubuchou 链接: https://blog.csdn.net/chouchoubuchou/article/details/104071513

Which git.exe should I reference?

陌路散爱 提交于 2020-01-22 17:51:32
问题 Git for Windows has installed four git.exe files. They seem slightly different (comparing bytes). Which should I use for other applications that want a reference to git.exe? \Program Files\Git\bin\git.exe \Program Files\Git\cmd\git.exe \Program Files\Git\mingw64\bin\git.exe \Program Files\Git\mingw64\libexec\git-core\git.exe 回答1: The different version are each one for a different purpose. \Program Files\Git\bin\git.exe This is the actual git binary which is added to your path if you run it

Which git.exe should I reference?

与世无争的帅哥 提交于 2020-01-22 17:48:50
问题 Git for Windows has installed four git.exe files. They seem slightly different (comparing bytes). Which should I use for other applications that want a reference to git.exe? \Program Files\Git\bin\git.exe \Program Files\Git\cmd\git.exe \Program Files\Git\mingw64\bin\git.exe \Program Files\Git\mingw64\libexec\git-core\git.exe 回答1: The different version are each one for a different purpose. \Program Files\Git\bin\git.exe This is the actual git binary which is added to your path if you run it

libtool: undefined symbols not allowed in i686-pc-mingw32 shared

烈酒焚心 提交于 2020-01-22 15:16:12
问题 I'm using autotools as build system for a library of mine. Recently library is ported to Windows. Library compiles and links successfully though I encountered a strange error. There is only static libraries after configure and make. Evertything looks OK except a warning from libtool : libtool: undefined symbols not allowed in i686-pc-mingw32 shared I have exported all symbols for Windows machines by this code: #ifdef _WIN32 # ifdef DLL_EXPORT # define LIBRARY_API __declspec(dllexport) # else