views:

458

answers:

0

Hi,

I'm on Windows 7, with Subsystem for Unix-based Applications (SUA) installed. I chose Custom installation and installed GCC in full.

Now I can call Korn shell and call gcc helloWorld.c to produce a.out.

What I want now is to set up the editor Notepad++ to compile source code when I Run > Run .. or F5.

If it helps, I can call Korn shell from cmd with

C:\Windows\posix.exe /u /c /bin/ksh -l

Trying to call GCC with

C:\Windows\posix.exe /u /c /bin/ksh -l gcc

does not work.

I hope to combine the whole expression with what I found in another post at http://stackoverflow.com/questions/1823982/executing-gcc-from-notepad,

cmd /K "c:\path\to\gcc.exe" "$(FULL_CURRENT_PATH)" -o "$(CURRENT_DIRECTORY)\$(NAME_PART).exe" 

Thanks.