Re: error compiling bonobo-activation, glib related?

On Wednesday, August 22, 2001, at 11:11  AM, Rodrigo Moya wrote:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I..
-DORBIT2=1 -I/gnome/head/INSTALL/include/glib-2.0
-I/gnome/head/INSTALL/lib/glib-2.0/include -I/gnome/head/INSTALL/include
-DVERSION=\"0.9.1\" -ansi -std=c99 -D_POSIX_C_SOURCE=199506L
-D_BSD_SOURCE -Wall -Wchar-subscripts -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align
-Wsign-compare -g -O2 -Wp,-MD,.deps/Bonobo_Unknown-common.pp -c
Bonobo_Unknown-common.c  -fPIC -DPIC -o Bonobo_Unknown-common.o
Bonobo_Unknown-common.c:0: malformed option `-D

Looks to me like something wrong with your gcc installation's handling of -ansi. The -D__STRICT_ANSI__-trigraphs bit comes from inside the compiler driver script, I think. And the lack of a space seems to indicate a mistake in there.

One quick way to test this is by typing this:

    echo "int main() { }" > test.c
    gcc -ansi test.c

If that gives you the same warning, you know that you have a gcc problem.

    -- Darin

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