From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,bb3da23f8b3fdf14,start X-Google-Attributes: gid1164f8,public From: Jim Reus Subject: 32-bit pointers vs. stdargs Date: 1998/04/29 Message-ID: <3547BB31.3D1A1074@llnl.gov>#1/1 X-Deja-AN: 348897404 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Lawrence Livermore National Laboratory Mime-Version: 1.0 Newsgroups: comp.sys.dec I'm having problems compiling an application requiring 32-bit pointers (-xtaso_short) and using stdarg.h (ansi-style varargs) on ALPHAstations running both DU 3.2 and 4.0B (they both seem to give similar complaints). The problem is that the (ansi, -std1) C compiler complains about: #include void f ( char *opt, ... ) { va_list args; : va_start(args,opt); /* <=== this is line XXX */ : } When compiled using "cc -std1 -xtaso_short -c banana.c" I get the following message: cc: Error: banana.c, line XXX: In this statement, the size of "args" is less than the size of a va_list structure as defined in stdarg.h and varargs.h. Is there more I should know? The source compiles (and runs) fine in 64-bit mode (without the option -xtaso_short). The application is sadly pointer-rich Ram-poor so I REALLY want to use 32-bit pointers if at all possible. -- jim ----------------------------------------------------------------------- Jim Reus | Internet: reus@llnl.gov Lawrence Livermore Nat'l Laboratory | Phone: (510) 424-3172 P.O. Box 808 - Mail Stop L-170 | FAX: (510) 422-3389 Livermore, CA 94550 | Location: B132, Room 1038 -----------------------------------------------------------------------