phc is generating incomplete code?
Hi!
I just compiled phc against php 5.2. Now, when I call phc to compile a simple php file, I get a 256 error from g++. Code:
$ /usr/local/phc/bin/phc -c Hello.php -o hello File ends up like this: Code:
int |
Well..... this is very weird. I think the problem is in the parameters that g++ is getting when being called from phc (which, by the way, is the same problem that the compilation of phc was about).
If you recall (http://www.linuxquestions.org/questi...-of-it-946931/) I had to manually pass the linker some -L and -l parameters with -Wl (was there a change in the way g++ passes this parameters since the days of the last phc release?). So..... I was able to make phc compile my php program by passing this additional parameters: Code:
-C "-Wl\,-L/usr/local/php/lib" -C "-Wl\,-L/usr/local/boost/lib" -C "-Wl\,-lphp5" -C "-Wl\,-lboost_regex" |
All times are GMT -5. The time now is 02:51 PM. |