|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-10-25 15:57 UTC] ralph at cs dot cf dot ac dot uk
Description: ------------ Trying to compile snapshot php5-200510251230 on MacOS 10.4.x with latest Apple Developer Tools gives /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/varargs.h: 4:2: error: #error "GCC no longer implements <varargs.h>." /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/varargs.h: 5:2: error: #error "Revise your code to use <stdarg.h>." Reproduce code: --------------- N/A Expected result: ---------------- Compile Actual result: -------------- /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/varargs.h: 4:2: error: #error "GCC no longer implements <varargs.h>." /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/varargs.h: 5:2: error: #error "Revise your code to use <stdarg.h>." PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 18:00:01 2025 UTC |
Does the code below compiles ok on your host? (just `gcc test.c -o test` should be fine). #include <stdarg.h> int foo(int x, ...) { va_list va; va_start(va, x); va_arg(va, int); va_arg(va, char *); va_arg(va, double); return 0; } int main() { return foo(10, "", 3.14); }