Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Compile linux program under windows.(compile under windows for linux)
Compile linux program under windows. [message #1781840] Tue, 13 February 2018 19:50 Go to next message
sprino z is currently offline sprino zFriend
Messages: 1
Registered: February 2018
Junior Member
Hello,
sorry for the question, but after various research I could not find anything!

Opening eclipse from windows operating system is it possible to create a project in c language and compile the program for linux and not for windows?
If possible, can someone give me some guidance?

Thank you,
Rino.
Re: Compile linux program under windows. [message #1782597 is a reply to message #1781840] Tue, 27 February 2018 00:31 Go to previous message
Andrey Sotnikov is currently offline Andrey SotnikovFriend
Messages: 23
Registered: October 2014
Junior Member
Windows cannot create a Linux executable. You need an actual target Linux box that will do the compilation. I usually share a Linux folder via samba, then create an Eclipse project in Windows on that share. Then in "C/C++ Build" project settings in Eclipse I send a remote build command to Linux using plink.
In Build Settings tab:
Build command: plink user@linuxbox

In Behavior tab something like:
Build: cd yourproject && make

Clean: cd yourproject && make clean

plink will redirect the compilation output from Linux back to Eclipse.
Previous Topic:GNU ARM install problem
Next Topic:Exe project builds dependent libs in lib current config, not exe config
Goto Forum:
  


Current Time: Thu Apr 25 04:42:10 GMT 2024

Powered by FUDForum. Page generated in 0.02808 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top