[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: errore di compilazione



Il Mon, Feb 24, 2003 at 07:27:18PM +0100, Andrea Beciani ha scritto:
> Questo è l'errore:
> 
> gcc -c -I. -I. -I../../include -I../../include  -g -O2 -Wall 
> -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__int8=char 
> -D__int16=short -D__int32=int "-D__int64=long long" -fPIC -D__WINE__ 
> -fshort-wchar  -D_REENTRANT -I/usr/X11R6/include -o dpnet_main.o dpnet_main.c
> cc1: Invalid option `-fshort-wchar'
> make[2]: *** [dpnet_main.o] Error 1
> make[2]: Leaving directory `/mnt/hdb/tmp/wine/dlls/dpnet'
> make[1]: *** [dpnet/libdpnet.so] Error 2
> make[1]: Leaving directory `/mnt/hdb/tmp/wine/dlls'
> make: *** [dlls] Error 2
> 
> Qualcuno può darmi qualche consiglio?

con il comando 'info gcc' ottieni tutte le informazioni sulle opzioni
del compilatore gcc. In particolare:

`-fshort-wchar'
     Override the underlying type for `wchar_t' to be `short unsigned
     int' instead of the default for the target.  This option is useful
     for building programs to run under WINE.

questa opzione è specificata nel manuale del gcc-3.0, ma non c'è in
quella del gcc-2.95, quindi immagino che l'applicazione vada compilata
col nuovo compilatore. Oppure puoi togliere l'opzione dal Makefile.

Ciao,
Giuseppe



Reply to: