In cygwin, /bin/gcc or /usr/bin/gcc is used (same file, it's linked it
seems)... This works as Cygwin sets it's own PATH variable... But for some
reason, it seems like that doesn't happend from Apache/PHP/Perl.. The only
env var that should have to be set is Path, and that should include
D:\cygwin\bin which it does... Here's my PATH (only first items as it's
pretty long):
c:\develop\mingw32\bin;D:\djgpp\bin;D:\cygwin\bin; D:\cygwin\usr\sbin
PATH is the same for system and my account... Also, what would my `` command
be? I have serious problems... Also, what dir should I try to include (I
mean, /usr/include or D:\cygwin\usr\include)?
Thanks for your help
--
// DvDmanDT
MSN:
dvdmandt@hotmail.com
Mail:
dvdmandt@telia.com
"luc wastiaux" <luc@nospam.invalid> skrev i meddelandet
news:pan.2003.09.20.18.57.49.204369@nospam.invalid ...[color=blue]
> On Sat, 20 Sep 2003 15:45:14 +0000, DvDmanDT wrote:
>[color=green]
> > Hello, I have an intresting problem: I want to let users upload[/color][/color]
sourcecode[color=blue][color=green]
> > and then compile it using my cygwin gcc... But one thing at a time... I
> > can't get that gcc to execute...
> >
> > shell_exec("gcc temp.c"); # Doesn't work as that will use MinGW
> > shell_exec("D:\\cygwin\\bin\\gcc.exe temp.c"); /* Gives some error about[/color][/color]
dll[color=blue][color=green]
> > stuff (procedure not found I think)*/[/color]
>
> my guess is:
> find out what environment variables need to be set in order for window's
> shell to find the correct DLLs, and set them before calling shell_exec
>
> it's just a guess though, I'm not sure that's the problem.
>
>[color=green]
> >
> > So my next though was to open "bash.exe --login -I" and fwrite the
> > commands... But that still tries to use the mingw compiler it[/color][/color]
seems...Guess[color=blue][color=green]
> > there's some environiment problem...[/color]
>
> well what's the default compiler when you run a bash shell under cygwin ?
>
> --
> luc wastiaux
> email: luc-at-4002-dot-org
> jabber:
luc@jabber.4002.org
>[/color]