On Friday 15 October 2004 22:25, dbs2 wrote:
> numar.c: In function `main':
> numar.c:10: warning: integer constant is too large for "long" type
> numar.c:11: warning: unknown conversion type character 0xa in format
> numar.c:11: warning: too many arguments for format
> numar.c:13:2: warning: no newline at end of file
  Dupa cum vezi, programul ti se compileaza (ai numai warning-uri).
  %q ar trebui inlocuit cu %lld.
  cat despre numar=5000000000; gcc-2.96 si gcc-3.2.3 nu mi s-au plans sub nici 
o forma.
  Dorin
PS: Transcript:
[EMAIL PROTECTED] spooky]$ vi test.c
[EMAIL PROTECTED] spooky]$ make test
cc     test.c   -o test
[EMAIL PROTECTED] spooky]$ ./test
%
[EMAIL PROTECTED] spooky]$ make test
cc     test.c   -o test
[EMAIL PROTECTED] spooky]$ ./test
5000000000
[EMAIL PROTECTED] spooky]$ export CFLAGS="-Wall"
[EMAIL PROTECTED] spooky]$ rm test
[EMAIL PROTECTED] spooky]$ make test
cc -Wall    test.c   -o test
[EMAIL PROTECTED] spooky]$ rm test
[EMAIL PROTECTED] spooky]$ export CC=gcc-3.2.3
[EMAIL PROTECTED] spooky]$ make test
gcc-3.2.3 -Wall    test.c   -o test
[EMAIL PROTECTED] spooky]$ cc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[EMAIL PROTECTED] spooky]$ gcc-3.2.3 -v
Reading specs from /opt/gcc/lib/gcc-lib/i686-linux/3.2.3/specs
Configured with: ./configure --prefix=/opt/gcc --program-suffix=-3.2.3 
--with-local-prefix=/opt/gcc --enable-shared --enable-languages=c,c++ 
--disable-nls --target=i686-linux
Thread model: posix
gcc version 3.2.3
[EMAIL PROTECTED] spooky]$

--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui