Questions tagged [mingw32]

22 questions
4
votes
2 answers

Compiling files with mingw-w64

I have a program #include #include using namespace std; int main() { cout<<"Hello World!! This Program Is made in win32 API\n"; return 0; } but when I compile this program x86_64-w64-mingw32-g++ Hello.cpp -o…
Garvit Joshi
  • 63
  • 2
  • 7
3
votes
2 answers

How to compile C GTK3+ program in Ubuntu for windows?

I am using and gcc-7 and mingw-w64.I want to compile a c gtk3+ program in Linux using mingw so that it will produce .exe file which can be run in windows.I am able to Compile normal c programs using mingw,But I can't compile gtk programs.I can…
user690429
3
votes
3 answers

Unable to locate package mingw32

A project I'm trying to compile needs mingw32. apt-get install gives me Unable to locate package mingw32. Doing an apt cache search yields many options and I need help choosing one that will work or eliminate this error. System…
3
votes
3 answers

How to setup Qt Creator to compile Windows executables?

The version of Qt Creator that ships in the repos. can compile Linux executables out of the box. However, it seems like some configuration is necessary to get it to compile Windows applications. I have the Mingw32 toolchain installed, and I have…
Nathan Osman
  • 32,495
2
votes
0 answers

How to install mingw64-make command on ubuntu

I need to build window version of startcoin on ubuntu and it contains installing mingw64-make command. I already installed make and mingw on ubuntu but have difficulty in installing mingw64-make command. I have tried…
2
votes
1 answer

x86_64-w64-mingw32-g++: cannot execute binary file: Exec format error

I have 64bit ubuntu virtual machine and a 64bit binary still getting the Exec format error. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty $ uname…
Shrikant
  • 21
  • 1
  • 1
  • 2
2
votes
1 answer

GCC 4.8 / MINGW W64 4.8

There is a PPA where I can find these packages for 12.04? Also a build script will do the job! I've tried to download it from sources but the dependencies are a mess. I'd like to start porting my projects to C++-11 but don't want to waste too much…
user74513
  • 191
  • 1
  • 7
2
votes
0 answers

Where can I download mingw32 version 4.72 for ubuntu?

I am cross compiling some software for linux that needs the 4.72 version of the mingw32 compiler to work. However, the version in the repos is only 4.4, where can I find 4.72?
1
vote
1 answer

Missing gcov symbols with mingw under Ubuntu 16.04

Before upgrading from Ubuntu 14.04 to Ubuntu 16.04 I could compile the following code with mingw-64-gcc x86_64-w64-mingw32-gcc -fprofile-generate -o test.exe test.c -lgcov -static //test.c #include int main(void) {puts("test");return…
tetram
  • 11
1
vote
0 answers

Installing the Cairo library for mingw to allow cross compiling for Windows

As the title says. I'm trying to install the cairo library for mingw so I can cross compile an application that uses it for a Windows target on my Ubuntu machine. I can't figure out how to do it! Can someone please point me in the right direction?
Simon
  • 11
1
vote
1 answer

Getting Eclipse CDT Helios to recognize i586 gcc mingw32 as a compiler, any ideas?

I installed CDT direct by extracting the tar. It detects the other compilers, but fails to recognize mingw32 as a compilation target. Any ideas? Unless you've tried a tutorial and it recognizes properly, please no links to the first 5 google…
RobotHumans
  • 30,112
1
vote
1 answer

How to set /usr/bin/i586-mingw32msvc-g++ to gww?

I use cross compiling for C++ using MinGW... I use /usr/bin/i586-mingw32msvc-g++ filename.cpp to compile, but I want to be able to type gww filename.cpp I think I need to set a PATH variable or something? Note Please note I am quite…
user280208
1
vote
1 answer

How to sync Ubuntu WSL and MINGW home directory for me

So I'm used to using the Git for Windows mingw and have ssh keys setup there. Recently adopted Ubuntu 18 on WSL (Windows subsystem for linux) and realized that the home folder in the Ubuntu is different from the home folder for MinGW MinGW is using…
enorl76
  • 113
  • 4
1
vote
1 answer

compile install libexpat for mingw under ubuntu

I'm using mingw under ubuntu to create windows executables. I need to use expat. It's not included in the repo, so I gather that I need to install it from sources. Is there an easy way to do this?
vy32
  • 309
1
vote
0 answers

makepkg-mingw on Ubuntu?

I'm trying to use Ubuntu to create a Windows app, following the steps outlined on this page. Is it possible to install makepkg-mingw on Ubuntu? Or is there a dedicated Ubuntu or Debian equivalent to this? I know about dpkg-deb, but that only creates…
1
2