Compile to Linux executable from Windows IDE

Just starting out? Need help? Post your questions and find answers here.
lesserpanda
User
User
Posts: 65
Joined: Tue Feb 11, 2020 7:50 am

Compile to Linux executable from Windows IDE

Post by lesserpanda »

Hi guys, so I'm ready to deploy a console app to linux to run as a daemon/service there.
It's a very basic question but how do I configure the compiler to do that? I looked at it but couldn't find the options.

Thanks in advance
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Compile to Linux executable from Windows IDE

Post by infratec »

PB is not a crosscompiler :wink:

You can not do this.
You need a linux PC and compile the code in a linux environment.

But since you also need to test the created executable you definately need a linux system.
So it doesn't matter.
User avatar
chi
Addict
Addict
Posts: 1028
Joined: Sat May 05, 2007 5:31 pm
Location: Linz, Austria

Re: Compile to Linux executable from Windows IDE

Post by chi »

If you don't have or want a dedicated Linux machine, just create a virtual machine with VMware or VirtualBox and compile from there. The benefit is, as infratec mentioned, that you can also test your program right away.
Et cetera is my worst enemy
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: Compile to Linux executable from Windows IDE

Post by Marc56us »

or use WSL (Windows Subsystem for Linux)
lesserpanda
User
User
Posts: 65
Joined: Tue Feb 11, 2020 7:50 am

Re: Compile to Linux executable from Windows IDE

Post by lesserpanda »

Thank you for the info. Much appreciated everyone!
Post Reply