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 in Linux Administration by Rahul
• 8,980 points
19 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
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 in Linux Administration by Aditya
• 7,280 points
15 views
0 votes
0 answers
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 in Linux Administration by Edureka
• 9,320 points
14 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
373 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,340 points
249 views
0 votes
1 answer

How to create nested directories with a single command in linux?

Try this command. mkdir -p /parent_dir/son_dir READ MORE

answered Oct 19, 2020 in Linux Administration by anonymous
• 19,600 points
896 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 in Others by Aditya
• 7,280 points
81 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 in Linux Administration by Soham
• 8,730 points
13 views
0 votes
1 answer

setuptools: build shared libary from C++ code, then build Cython wrapper linked to shared libary

There is a seemingly undocumented feature of setup that ...READ MORE

answered Sep 11, 2018 in Python by Priyaj
• 58,060 points
178 views
0 votes
1 answer

setuptools: build shared libary from C++ code, then build Cython wrapper linked to shared libary

There is a seemingly undocumented feature of setup that ...READ MORE

answered Sep 21, 2018 in Python by Priyaj
• 58,060 points
1,328 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP