mingw-w64

MinGW-w64离线安装

二次信任 提交于 2021-02-17 08:24:50
1、下载 如果你能从在线 安装,那最好就在线安装吧。 如果你能连上官网,那可以选择从官网去下载,地址: https://osdn.net/projects/mingw/releases/ https://sourceforge.net/projects/mingw-w64/files/ 从这里去下载,选择需要下载的文件。 如图,我这里选择的是 x86_64-posix-seh 2、7-zip 下载下来的文件是7z文件,直接解压就行,如果没有7z的解压工具,可以去下载一个。 https://www.7-zip.org/ 去官网下载,我的是64位系统。 安装7-zip。 我的是安装在D盘的,如图: 3、解压 7-zip安装之后,去目录解压文件。 可以选择把下载下来的x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z文件拷贝到7-zip目录。 使用命令进行解压。 7z x x86_64- 8.1. 0-release- posix-seh-rt_v6-rev0.7z -o./ 命令表示解压文件到当前目录下。 解压之后会得到一个mingw64的文件夹,将其拷贝到你要安装的目录。 4、环境变量 解压完毕之后需要配置环境变量 path下添加你的mingw64/bin,如:D:\mingw64\bin 在cmd窗口使用 gcc -v去查看下。 来源:

%1 is not a valid Win32 application

末鹿安然 提交于 2021-02-11 08:23:04
问题 I want to make a .dll in Qt, and to use generated .dll in a Java project in Eclipse. I've followed this tutorial to create a working dll. The full code that works is given below: jniProjectExample_JniExample.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class jniProjectExample_JniExample */ #ifndef _Included_jniProjectExample_JniExample #define _Included_jniProjectExample_JniExample #ifdef __cplusplus extern "C" { #endif /* * Class: jniProjectExample

%1 is not a valid Win32 application

て烟熏妆下的殇ゞ 提交于 2021-02-11 08:21:54
问题 I want to make a .dll in Qt, and to use generated .dll in a Java project in Eclipse. I've followed this tutorial to create a working dll. The full code that works is given below: jniProjectExample_JniExample.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class jniProjectExample_JniExample */ #ifndef _Included_jniProjectExample_JniExample #define _Included_jniProjectExample_JniExample #ifdef __cplusplus extern "C" { #endif /* * Class: jniProjectExample

Python 3.5 not handling unicode input from CLI argument

丶灬走出姿态 提交于 2021-02-11 05:53:37
问题 I have a simple script that I'm attempting to use automate some of the japanese translation I do for my job. import requests import sys import json base_url = 'https://www.googleapis.com/language/translate/v2?key=CANT_SHARE_THAT&source=ja&target=en&q=' print(sys.argv[1]) base_url += sys.argv[1] request = requests.get( base_url ) if request.status_code != 200: print("Error on request") print( json.loads(request.text)['data']['translations'][0]['translatedText']) When the first argument is a

Linking boost in CLion project

只愿长相守 提交于 2021-02-11 04:50:39
问题 I want to link my c++ project on CLion with Boost. In order to make everything way easier to port I'd prefer having all the libraries directly in the project files so I put the boost folder directly in my project files and then proceeded to edit the CMakeList.txt to link the library. I want to link my c++ project on CLion with Boost. In order to make everything way easier to port I'd prefer having all the libraries directly in the project files so I put the boost folder directly in my project

Linking boost in CLion project

梦想的初衷 提交于 2021-02-11 04:50:34
问题 I want to link my c++ project on CLion with Boost. In order to make everything way easier to port I'd prefer having all the libraries directly in the project files so I put the boost folder directly in my project files and then proceeded to edit the CMakeList.txt to link the library. I want to link my c++ project on CLion with Boost. In order to make everything way easier to port I'd prefer having all the libraries directly in the project files so I put the boost folder directly in my project

How can I make CMake use Mingw-w64 gcc/g++? [duplicate]

允我心安 提交于 2021-02-07 22:56:14
问题 This question already has answers here : Running CMake on Windows (2 answers) Closed 1 year ago . I am on Windwos trying to get Mingw-w64 to work with CMake since my MSVC is somehow not working at all (using Windows10 64bit. Basically I add the arguments -DCMAKE_CXX_COMPILER="C:/MinGW-w64/mingw64/bin/g++.exe" -DCMAKE_C_COMPILER="C:/MinGW-w64/mingw64/bin/gcc.exe" to my call to CMake which sets the corresponding compiler. However I get these errors: -- The C compiler identification is unknown -

Why does running npm test result in: '.' is not recognized as an internal or external command, operable program or batch file.?

泪湿孤枕 提交于 2021-02-07 09:20:21
问题 I have the following installed: Windows 10 Git bash (mingw64) Node.js v8.7.0 npm version 5.4.2 Packages: chai 4.4.1 mocha 3.5.0 I have a sample mocha test that will always pass when it actually runs. The command I'm running in my shell: npm test Output: ./node_modules/mocha/bin/_mocha '.' is not recognized as an internal or external command, operable program or batch file. npm ERR! Test failed. See above for more details. For some reason I'm able to run this command directly: ./node_modules

Why does running npm test result in: '.' is not recognized as an internal or external command, operable program or batch file.?

ぐ巨炮叔叔 提交于 2021-02-07 09:17:56
问题 I have the following installed: Windows 10 Git bash (mingw64) Node.js v8.7.0 npm version 5.4.2 Packages: chai 4.4.1 mocha 3.5.0 I have a sample mocha test that will always pass when it actually runs. The command I'm running in my shell: npm test Output: ./node_modules/mocha/bin/_mocha '.' is not recognized as an internal or external command, operable program or batch file. npm ERR! Test failed. See above for more details. For some reason I'm able to run this command directly: ./node_modules

VS Code: local variables not showing correctly

为君一笑 提交于 2021-02-05 07:20:44
问题 Sorry if this has been asked before, but I don't get the previous given answers. I'm new to VS Code and know a bit of c++ coding. I tried the tutorial for windows/mingw : https://code.visualstudio.com/docs/cpp/config-mingw#_step-through-the-code and done everything so far. The sample code has been build and I want to debug now, but my variables view is showing something different when stepping through the application when debugging. (see attached image) The word should contain any of the