Re: Launching Cygwin through VC++




"newbee" <c.sunita@xxxxxxxxx> wrote in message
news:1167848046.909878.253270@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks a lot. That worked perfectly!!

You're quite welcome.


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

  • How to get make to work under Cygwin bash shell
    ... I have an older version of Cygwin under which "make" works fine. ... "make" at the command prompt, ... I have a Makefile in the local directory and ran a ./configure script ... When I look at my environment variables, ...
    (comp.lang.c)
  • Re: Launching Cygwin through VC++
    ... I need to launch a makefile in Cygwin from a VC++ program. ... I can launch just Cygwin using ShellExecuteor CreateProcess, ... Does cygwin allow a parameter for a command to run? ...
    (microsoft.public.vc.language)
  • Re: question about installation of GD::Text on cygwin (could be a Makefile q)
    ... I am trying to install a few modules with an ... > environment of Cygwin w/ windows 2000. ... > Went to cygwin to download latest and greatest code, ... > modules and this step builds a Makefile with those modules. ...
    (comp.lang.perl.misc)
  • Re: Launching Cygwin through VC++
    ... Jim Langston wrote: ... I need to launch a makefile in Cygwin from a VC++ program. ... I can launch just Cygwin using ShellExecuteor CreateProcess, ...
    (microsoft.public.vc.language)
  • Re: Sound/Music for Scheme
    ... think you need to add -lc to the LIBS list at the top of the makefile, but I'm just guessing -- I don't have any info about cygwin libraries. ... '__divdi3' is the reason for the linker to not link correctly. ...
    (comp.lang.scheme)