Re: Launching Cygwin through VC++



Thanks a lot. That worked perfectly!!

Ben Voigt wrote:
That probably won't work as desired; your cygwin environment won't be set
properly.

Try instead to run the command line:

bash --login -c "cd whateverdirectory && make"

"Venkatesh" <lbvenkatesh@xxxxxxxxx> wrote in message
news:1167392858.838168.218390@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cygwin is a collection of executables and make(or gmake) is one of
them; Use either exe launcher APIs to lauch <cygwin-dir>/bin/make.exe
with the makefile as cmd line arg.
-
Venkatesh
Jim Langston wrote:
"newbee" <c.sunita@xxxxxxxxx> wrote in message
news:1167269292.514070.136130@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I need to launch a makefile in Cygwin from a VC++ program.
How do I do that?

I can launch just Cygwin using ShellExecute() or CreateProcess(), but I
can't figure out how to pass the makefile to Cygwin once it launches.

Thanks

Does cygwin allow a parameter for a command to run? If so, pass it in.
Otherwise look at cygwin. Maybe you can change the login script to run
the
makefile.


.



Relevant Pages