Questions tagged as 'mingw'

1
answer

The chmod command does not work as expected when using MINGW32

The chmod command does not work as expected when using MINGW32 in Windows. I tested only on Windows 10 64 bit. $ cat ~/bin/minha-shell echo "Esta é minha shell" ls -lat /c/ $ chmod 777 ~/bin/minha-shell $ ls -lat ~/bin/minha-shel...
asked by 06.11.2015 / 15:13
2
answers

Is it possible to add extra classes to a dll?

The compiler even compiles perfectly, but for some reason when I run app.exe it returns an error, it follows my code: main.cpp #include <iostream> #include "cpp.h" int main() { ClassA * a = new ClassA(); std::cout <&l...
asked by 28.09.2017 / 22:22
1
answer

How to install mingw-w64-x86_64-GCC with MSYS2 if I get the message that mingw64 is already installed on the system

I'm trying to install GCC on my Windows workstation to do new testing using GCC and some C compiled programs that can be ported to Windows. I have already used several versions of GCC for Windows, some based on CygWin others in Mingw itself,...
asked by 20.10.2016 / 14:59
0
answers

How to install JFlex, Yacc and GCC to create a compiler on windows 8.1?

I need to add in the path of windows also, as I will do in notepad, so to compile directly in cmd, I need to append to windows path.     
asked by 30.11.2017 / 03:23
0
answers

QCoreApplication :: applicationVersion does not "recognize" RC_FILE when using Mingw

I've created a rc ( Resource File >) and added it to the project ( winvertest.pro ): rcexample.rc #include "winver.h" VS_VERSION_INFO VERSIONINFO FILEVERSION 1,0,0,1 PRODUCTVERSION 1,0,0,1 FILEFLAGS 0x0L...
asked by 08.11.2017 / 21:32
0
answers

Compile PHP-CPP extension in Windows

I'm trying to develop a PHP extension with PHP-CPP in Windows. I was able to compile the .a and .so of PHP-CPP with MingW, but when I compile the extension it does not find phpcpp.h. Home My Makefile File: NAME = Teste IN...
asked by 14.02.2016 / 04:23
1
answer

Using the getline () function in C with MinGW

I've created a code for a bookstore library using Linux / GNU, and it works fine there. However, I need the code compile in Windows using GCC, and I was wondering if there is a method to use this function or if there is a simple way to override...
asked by 18.11.2018 / 01:28
1
answer

Painting pixels in c ++

Hello, I needed a function to paint pixels on the console. I've got a solution here but when compiling gives me the following error:    C: \ Users \ user \ AppData \ Local \ Temp \ ccORhjHu.o: test.cpp: (.text + 0xa1): undefined reference...
asked by 05.05.2018 / 13:59
1
answer

How to save records from a mysql query in C ++

I'm using a C ++ library that does the query in the database. My goal is to do a query, and save the data in a txt file, maybe even manipulating it to get json format. The problem is that I can not retrieve the value of the records when saving t...
asked by 04.08.2017 / 00:02
1
answer

Problem with CMake makefiles generator

I'm going to go on this tutorial on how to install allegro 5 with MSYS2. But I have a problem. By the time I'm going to run the command cmake \ -G"MSYS Makefiles" \ -DCMAKE_SYSTEM_PREFIX_PATH:PATH=/mingw64/x86_64-w64-mingw32/...
asked by 06.08.2015 / 01:10