Author Topic: Silly question regarding Windows Subsystem for Linux.  (Read 5180 times)

Offline Goofus Maximus

  • Single posting newcomer
  • *
  • Posts: 5
Silly question regarding Windows Subsystem for Linux.
« on: June 04, 2017, 06:04:35 am »
With the Windows Subsystem for Linux, one can run linux commands from a windows command prompt, using the "bash -c" command.  So I was wondering if it would be possible to set up WSL compilers as a valid target compilers for Code Blocks in Windows 10 (creator's update), and if so, just how much work would that entail?

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Silly question regarding Windows Subsystem for Linux.
« Reply #1 on: June 04, 2017, 08:25:32 am »
You would need to edit the CB source code to allow the shell to be changed.
And, then you would need to build Code::Blocks from the edited source code.

Edit: I would guess you would find more things that need to be done.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Goofus Maximus

  • Single posting newcomer
  • *
  • Posts: 5
Re: Silly question regarding Windows Subsystem for Linux.
« Reply #2 on: June 04, 2017, 12:47:33 pm »
Well that's just it. You don't need to change the shell, since one of the features of this is that you can run bash commands from the dos command prompt, using the "bash -c yourlinuxcommandhere", and have the output in the command prompt.  Example attached below:

The way Windows is mixing and matching Windows and Linux together here is kind of exciting.  I haven't gone off the deep end, and tried the whole xming x-server for windows, to try and run the graphical linux apps, which some folks have done, with limited success, so I don't know of code blocks for linux is one of those apps that don't run afoul of linux subsystem restrictions or not.

Meh.  never mind.  Tried using different commands like sudo apt-get update, and it just lists help text instead of running.  It would've been nice, but no dice.
« Last Edit: June 04, 2017, 02:37:09 pm by Goofus Maximus »