mingw

How to set up OpenMP?

最后都变了- 提交于 2020-01-17 18:26:32
问题 I am using Codeblocks and have to run an OpenMP C program. So, I added the flag -fopenmp in Codeblocks (compiler settings) and am now getting the error of ' mingw32-g++.exe: error: libgomp.spec: No such file or directory ' So after a bit of searching on the internet about the error, I downloaded TDM-GCC ( installed in C:\TDM-GCC-64). But still the same error is being shown on Codeblocks. What am I doing wrong? Here is the build log: mingw32-gcc.exe -c "D:\Language Files\MatrixMultiplication.c

Linker (ld v2.23.2 from MinGW) error at form: -L<SOMEDIR> -l<lib1 -l<lib2>,

扶醉桌前 提交于 2020-01-17 05:12:25
问题 Have ld v2.23.2 from mingw-builds 4.8.0 32bit suite. In my project in a directory there are libs: libitpp.a and libitpp.dll.a. The first is simply static lib, the second is import library to correspondent shared lib (DLL on Windows). I tell linker to link there libs in following form: -L$$ITPP_DIR/libs -litpp and the linker always chooses the second lib (libitpp.dll.a), but I want the first (libitpp.a), because "-litpp" matches it exactly. At explicit instruction: $$ITPP_DIR/libs/libitpp.a

Run-Time Check Failure #0: Using C-exports from MinGW dll in VC++ (or: Using libclang MinGW build in VC++ application)

依然范特西╮ 提交于 2020-01-17 04:54:05
问题 This question is about using C-Functions from a MinGW dll in a VC++ project, which fails with the following error: Run-Time Check Failure #0 . I successfully build clang and more importantly libclang using MinGW (to have a libclang.dll that uses the MinGW standard library). My application previously used a VC++-build of libclang, that I now want to exchange with the MinGW build. To do that, I created a def-file and afterwards an import library from the MinGW dll file: dlltool -z libclang.def

How to fix “fatal error: filesystem: No such file or directory” in Code::Blocks?

孤街醉人 提交于 2020-01-17 00:37:32
问题 I'm writing a script which deletes old backup files. I've included "filesystem" as I would normally do, but this time, I got this error: "fatal error: filesystem: No such file or directory" I tried to include "experimental/filesystem" and I set "-lstdc++fs" as GCC flag. Nothing has worked for me. #include <cstdlib> #include <algorithm> #include <vector> #include <filesystem> namespace fs = std::filesystem; int main() { fs::path const directory{ "C:\Test" }; std::vector<fs::directory_entry>:

How to fix “fatal error: filesystem: No such file or directory” in Code::Blocks?

大城市里の小女人 提交于 2020-01-17 00:37:30
问题 I'm writing a script which deletes old backup files. I've included "filesystem" as I would normally do, but this time, I got this error: "fatal error: filesystem: No such file or directory" I tried to include "experimental/filesystem" and I set "-lstdc++fs" as GCC flag. Nothing has worked for me. #include <cstdlib> #include <algorithm> #include <vector> #include <filesystem> namespace fs = std::filesystem; int main() { fs::path const directory{ "C:\Test" }; std::vector<fs::directory_entry>:

Compiling c program with MinGW causes cc1.exe fatal error

杀马特。学长 韩版系。学妹 提交于 2020-01-16 07:41:18
问题 I installed MinGW-w64 using win-builds. It all went ok but then when I compile a file using gcc -Wall -o prog.exe main.c I get this error cc1.exe: fatal error: Files/win-builds-1.5.0/include: No such file or directory compilation terminated. I have updated gcc path. I get the same error when I try to build on eclipse. The location where win-builds put all the files is C:\Program Files\win-builds-1.5.0\ and the folder \include\ exists. My guess is that cc1.exe is trying to access C:\Program

QT 5.2 has no kit or qmake with MingW after installation

天大地大妈咪最大 提交于 2020-01-16 07:19:08
问题 I downloaded the QT 5.2 build for MingW/OpenGL build and installed it. When I run QTCreator and try to create a project, I can't set it up because there is no kit available to choose from. I have MingW installed, so I tried to point QT to this installation, but there is qmake as well missing. I'm not sure if the manual configuration of the compiler would suffice to have a kit to choose from, but that would be my expectation. So the question is, how do I setup QT properly that it recognizes my

Eclipse搭建C++\\C开发环境

时光怂恿深爱的人放手 提交于 2020-01-16 03:48:58
1、最近使用visualStudio IDE开发Unity 3D使用的编程语言是C#但是发现visualStudio12 版本在自己主机上运行速度比够快,怀疑是不是处理器或者是版本问题,所以该卸载了,之后安装15版本的,但是由于拆卸不干净导致安装不成功的问题。将注册表清理之后也无法安装,所以想之前在eclipse添加python的编辑器一样,再在eclipse中添加C#的编辑器。这样不仅占用的内存小,也解决了我的环境问题。 2、将自己整理的方法总结一下,以备后用。 3、首先下载 编辑器 MinGW 地址: http://www.mingw.org/download.shtml 4、在eclipse中添加 CDT插件 : eclipse菜单-----》help-----》install new software----》work with---(add) Name 中写CDT location一栏中添加 下载地址: http://download.eclipse.org/tools/cdt/releases/galileo 之后点击add finish 重启eclipse之后 CDT添加完了。点击下一步 接受许可。 5、MinGW的安装和环境配置 根据自己电脑配置进行系统的配置下载响应版本的MinGW。安装后之后进行配置。 mingw完成安装之后启动mingw

C++ - Making the console fullscreen?

丶灬走出姿态 提交于 2020-01-15 12:25:28
问题 All right, I'm sad now. Microsoft has removed the fullscreen console feature from Win7, which is what I'm running. Now I'm looking into things like OpenGL or SDL to see if I can emulate the console, and make it fullscreen (and I mean FULLSCREEN no window or border or anything). Is it possible to emulate the console fullscreen (like DOS) in OpenGL or something similar? 回答1: try the system command it's a bit esier (system ("mode 650"); } example: #include <iostream> using namespace std; int

C++ - Making the console fullscreen?

谁说胖子不能爱 提交于 2020-01-15 12:25:04
问题 All right, I'm sad now. Microsoft has removed the fullscreen console feature from Win7, which is what I'm running. Now I'm looking into things like OpenGL or SDL to see if I can emulate the console, and make it fullscreen (and I mean FULLSCREEN no window or border or anything). Is it possible to emulate the console fullscreen (like DOS) in OpenGL or something similar? 回答1: try the system command it's a bit esier (system ("mode 650"); } example: #include <iostream> using namespace std; int