Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Problem compiling php5 in visual studio (http://www.go4expert.com/forums/compiling-php5-visual-studio-t21398/)

nattsurf123 17Mar2010 22:21

Problem compiling php5 in visual studio
 
I'm trying to compile php-5.3.2 on a vista 64 using visual studio 2008.
So I downloaded this package where i added an existing .dsp file to my project that was converted
to VS2008.
Im just in the beginning of this phase.
Something that is a bit strange is that they added the file getopt.c and this file is
not found in php-5.3.2\sapi\cgi where it is pointing to from the project.
If it is there for a reason then why is it not found in the folder where it is supposed to be?
The error I get is:
Error 21 fatal error C1083: Cannot open source file: '..\sapi\cgi\getopt.c': No such file or directory c1 php5
Grateful for any help on this.

shabbir 18Mar2010 08:12

Re: Problem compiling php5 in visual studio
 
There are 2 things that you can try. Infact 3.
  1. Open DSP file in a notepad and remove that file reference and see if it works.
  2. Create a blank file with that name and see what happens
  3. Comment that line and see if it works
GetOpt is mainly for Unix environment and it is for getting some command line stuffs to make it work.

nattsurf123 18Mar2010 22:38

Re: Problem compiling php5 in visual studio
 
Quote:

Originally Posted by shabbir (Post 65835)
There are 2 things that you can try. Infact 3.
  1. Open DSP file in a notepad and remove that file reference and see if it works.
  2. Create a blank file with that name and see what happens
  3. Comment that line and see if it works
GetOpt is mainly for Unix environment and it is for getting some command line stuffs to make it work.

Thanks Shabbir
I didn't know that it was a unix environment specfic file.
BTW I found out that php-5.2.13.tar had the missing file. They are a bit sloppy with their project builds.


All times are GMT +5.5. The time now is 19:06.