How to compile for Windows on Linux with gcc g

0 votes

I have written some effects in C++ (g++) using freeglut on Linux, and I compile them with

g++ -Wall -lglut part8.cpp -o part8

So I was wondering if it is possible to have g++ make static compiled Windows executables that contain everything needed?

I don't have Windows, so it would be really cool if I could do that on Linux. Any help will be appreciated!

Apr 13, 2022 in Linux Administration by Rahul
• 9,680 points
767 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Linux Administration

0 votes
1 answer

How to compile executable for Windows with GCC with Linux Subsystem?

Linux Subsystem fills in as a Linux-PC. ...READ MORE

answered Jun 20, 2022 in Linux Administration by Rahul
• 3,380 points
5,325 views
0 votes
0 answers

failure to compile imgui, glfw, opengl on linux with gcc 11.2

I've recently started coding with c++ and ...READ MORE

Apr 14, 2022 in Linux Administration by Aditya
• 7,680 points
894 views
0 votes
0 answers

How to create shortcut icons for Windows, MacOS and Linux applications bundled with PyInstaller

I am building a Python application bundled ...READ MORE

Apr 26, 2022 in Linux Administration by Edureka
• 13,690 points
927 views
0 votes
0 answers

How to get overall CPU usage (e.g. 57%) on Linux

I am wondering how you can get ...READ MORE

Apr 25, 2022 in Linux Administration by Edureka
• 13,690 points
430 views
0 votes
1 answer

How to find the group associated with a user in linux?

To list all the groups groups or to list ...READ MORE

answered Jun 21, 2019 in Linux Administration by DareDev
• 6,890 points
940 views
0 votes
1 answer

How to find all files containing specific text on Linux?

Hi@akhtar, Linux systems have one interesting command name grep. ...READ MORE

answered Sep 22, 2020 in Linux Administration by MD
• 95,460 points
1,318 views
0 votes
1 answer

Convert char to int in C and C++

In order to read the value as ...READ MORE

answered Feb 17, 2022 in Others by Aditya
• 7,680 points
3,694 views
0 votes
0 answers

How to implement getch() function of C in Linux?

In TurboC++, I can use the getch() ...READ MORE

Apr 14, 2022 in Linux Administration by Soham
• 9,710 points
954 views
0 votes
1 answer

How does #include <bits/stdc++.h> work in C++? [duplicate]

#include <bits/stdc++.h> is a precompiled header implementation ...READ MORE

answered Jun 21, 2022 in C++ by Damon
• 4,960 points
8,538 views
0 votes
0 answers

How to implement getch() function of C in Linux?

In TurboC++, I can use the getch() ...READ MORE

Dec 14, 2022 in Linux Administration by erzan
• 630 points
692 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP